From 48ab1fdc8d8c732f6818bf210dcd833bfc51cba5 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 3 Nov 2021 14:23:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Logs/log-20211103.txt | 17869 ++++++++++++++++ .../20210830073315_init.Designer.cs | 8069 ------- .../Migrations/20210830073315_init.cs | 3505 --- .../20210830073634_202108300001.Designer.cs | 8246 ------- .../Migrations/20210830073634_202108300001.cs | 80 - .../20210901012406_201209010001.Designer.cs | 8434 -------- .../Migrations/20210901012406_201209010001.cs | 95 - .../20210901030011_202109010002.Designer.cs | 8434 -------- .../Migrations/20210901030011_202109010002.cs | 39 - .../20210902032556_202109020001.Designer.cs | 8514 -------- .../Migrations/20210902032556_202109020001.cs | 45 - .../20210908064420_20210908.Designer.cs | 8626 -------- .../Migrations/20210908064420_20210908.cs | 61 - .../20210908064843_2021090801.Designer.cs | 8706 -------- .../Migrations/20210908064843_2021090801.cs | 45 - .../20210909023755_data09-02.Designer.cs | 8712 -------- .../Migrations/20210909023755_data09-02.cs | 34 - .../20210911114440_202109110001.Designer.cs | 8722 -------- .../Migrations/20210911114440_202109110001.cs | 75 - .../20210923073158_202109230001.Designer.cs | 8733 -------- .../Migrations/20210923073158_202109230001.cs | 93 - .../20210923075035_202109230003.Designer.cs | 8735 -------- .../Migrations/20210923075035_202109230003.cs | 57 - .../20210928072540_data20190928.Designer.cs | 8739 -------- .../Migrations/20210928072540_data20190928.cs | 24 - .../20210930051830_2021093001.Designer.cs | 8860 -------- .../Migrations/20210930051830_2021093001.cs | 55 - .../20211008014847_2021100801.Designer.cs | 8970 -------- .../Migrations/20211008014847_2021100801.cs | 58 - .../20211008025050_2021100802.Designer.cs | 8973 -------- .../Migrations/20211008025050_2021100802.cs | 23 - .../20211009013417_2021100901.Designer.cs | 9138 -------- .../Migrations/20211009013417_2021100901.cs | 126 - .../20211009013927_2021100902.Designer.cs | 9142 -------- .../Migrations/20211009013927_2021100902.cs | 24 - .../20211009083009_2021100900012.Designer.cs | 9145 -------- .../20211009083009_2021100900012.cs | 23 - .../20211010014458_202110100001.Designer.cs | 9145 -------- .../Migrations/20211010014458_202110100001.cs | 17 - .../20211010014700_202110100002.Designer.cs | 9285 -------- .../Migrations/20211010014700_202110100002.cs | 62 - .../20211011084504_202110110001.Designer.cs | 9288 -------- .../Migrations/20211011084504_202110110001.cs | 89 - .../20211012080054_20211012.Designer.cs | 9292 -------- .../Migrations/20211012080054_20211012.cs | 68 - .../20211012084512_2021101201.Designer.cs | 9292 -------- .../Migrations/20211012084512_2021101201.cs | 35 - ...ApiHostMigrationsDbContextModelSnapshot.cs | 9290 -------- .../SettleAccount.HttpApi.Host.csproj | 1 + .../appsettings.Development.json | 6 +- .../Entities/Prices/PriceListDtoBase.cs | 41 +- .../Entities/Prices/PriceListAppService.cs | 61 +- .../Entities/Prices/PriceList.cs | 8 +- .../Entities/Prices/PriceListManager.cs | 31 +- ...AccountDbContextModelCreatingExtensions.cs | 10 +- ....Snowflakes.csproj.AssemblyReference.cache | Bin 5720 -> 18773 bytes ....Sfs.Shared.csproj.AssemblyReference.cache | Bin 18561 -> 203914 bytes .../Win.Utils.csproj.AssemblyReference.cache | Bin 4026 -> 177051 bytes 58 files changed, 17969 insertions(+), 217281 deletions(-) create mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211103.txt delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.Designer.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.cs delete mode 100644 src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211103.txt b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211103.txt new file mode 100644 index 00000000..6c8dc758 --- /dev/null +++ b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211103.txt @@ -0,0 +1,17869 @@ +2021-11-03 12:35:03.550 G Starting web host. +2021-11-03 12:35:11.350 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 12:35:12.040 G Loaded ABP modules: +2021-11-03 12:35:12.042 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 12:35:12.043 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 12:35:12.043 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 12:35:12.044 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 12:35:12.044 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 12:35:12.045 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 12:35:12.046 G - Volo.Abp.Data.AbpDataModule +2021-11-03 12:35:12.046 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 12:35:12.047 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 12:35:12.047 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 12:35:12.048 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 12:35:12.048 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 12:35:12.048 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 12:35:12.049 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 12:35:12.049 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 12:35:12.050 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 12:35:12.050 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 12:35:12.051 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 12:35:12.051 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 12:35:12.052 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 12:35:12.052 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 12:35:12.053 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 12:35:12.053 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 12:35:12.054 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 12:35:12.054 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 12:35:12.054 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 12:35:12.055 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 12:35:12.056 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 12:35:12.056 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 12:35:12.057 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 12:35:12.058 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 12:35:12.058 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 12:35:12.059 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 12:35:12.060 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 12:35:12.066 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 12:35:12.068 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 12:35:12.068 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 12:35:12.069 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 12:35:12.070 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 12:35:12.070 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 12:35:12.071 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 12:35:12.071 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 12:35:12.072 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 12:35:12.073 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 12:35:12.073 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 12:35:12.074 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 12:35:12.075 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 12:35:12.075 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 12:35:12.079 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 12:35:12.081 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 12:35:12.082 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 12:35:12.083 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 12:35:12.084 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 12:35:12.085 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 12:35:12.089 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 12:35:12.090 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 12:35:12.090 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 12:35:12.091 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 12:35:12.093 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 12:35:12.094 G - Volo.Abp.UI.AbpUiModule +2021-11-03 12:35:12.096 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 12:35:12.096 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 12:35:12.097 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 12:35:12.098 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 12:35:12.099 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 12:35:12.099 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 12:35:12.100 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 12:35:12.100 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 12:35:12.101 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 12:35:12.102 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 12:35:12.102 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 12:35:12.103 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 12:35:12.103 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 12:35:12.104 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 12:35:12.104 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 12:35:12.105 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 12:35:12.106 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 12:35:12.106 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 12:35:12.107 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 12:35:12.111 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 12:35:12.112 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 12:35:12.178 G Start installing Hangfire SQL objects... +2021-11-03 12:35:12.329 G Hangfire SQL objects installed. +2021-11-03 12:35:12.339 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:35:12.341 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:35:12.342 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:35:12.391 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:35:12.392 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:35:12.393 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:35:12.681 G Server sk-20210819huao:21292:f902846a successfully announced in 241.6335 ms +2021-11-03 12:35:12.681 G Server sk-20210819huao:21292:0cc5df85 successfully announced in 314.0325 ms +2021-11-03 12:35:12.692 G Server sk-20210819huao:21292:f902846a is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:35:12.692 G Server sk-20210819huao:21292:0cc5df85 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:35:12.729 G 2 servers were removed due to timeout +2021-11-03 12:35:12.949 G Server sk-20210819huao:21292:f902846a all the dispatchers started +2021-11-03 12:35:12.949 G Server sk-20210819huao:21292:0cc5df85 all the dispatchers started +2021-11-03 12:35:14.175 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:35:14.565 G Executed DbCommand ("30"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.665 G Executed DbCommand ("3"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.673 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.677 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.686 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.691 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.696 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.701 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.705 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.709 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.718 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.722 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.726 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.733 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.737 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.740 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.749 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.753 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.758 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.766 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.770 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.778 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.782 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.786 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.792 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.795 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.799 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.807 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.811 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.815 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.822 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.826 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.835 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.840 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.844 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.849 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.857 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.861 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.871 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.882 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.888 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.892 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.896 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.905 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.909 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.919 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.923 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.928 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.933 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.937 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.941 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.949 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.955 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.965 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.970 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.974 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.984 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.988 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:14.996 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.000 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.004 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.013 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.050 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.057 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.063 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.075 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.082 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.096 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.107 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.114 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.126 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.139 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.149 G Executed DbCommand ("4"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.157 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:35:15.447 G Initialized all ABP modules. +2021-11-03 12:35:15.535 G Now listening on: "http://localhost:44378" +2021-11-03 12:35:15.536 G Application started. Press Ctrl+C to shut down. +2021-11-03 12:35:15.537 G Hosting environment: "Development" +2021-11-03 12:35:15.538 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 12:35:17.328 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 12:35:18.197 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:35:18.214 G Executed DbCommand ("2"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value] +FROM [AbpSettings] AS [a] +WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL" +2021-11-03 12:35:18.345 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:35:18.351 G Executed DbCommand ("1"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value] +FROM [AbpSettings] AS [a] +WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL" +2021-11-03 12:35:18.504 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:35:18.597 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 12:35:18.644 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 12:35:18.657 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 44.0537ms +2021-11-03 12:35:18.659 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:35:18.687 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1361.5728ms +2021-11-03 12:35:18.711 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 12:35:18.803 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 92.8553ms +2021-11-03 12:35:18.971 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 12:35:19.974 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 1003.0392ms +2021-11-03 12:36:27.725 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryBDGZJp4SF0M4BohV 170569 +2021-11-03 12:36:27.731 G CORS policy execution failed. +2021-11-03 12:36:27.731 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 12:36:27.736 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:36:27.754 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 12:36:29.076 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.079 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.080 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.081 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.082 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.084 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.085 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.086 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.088 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.089 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.090 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.094 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.096 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.097 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.098 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.100 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.101 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.103 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.106 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.109 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.111 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.112 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.114 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.115 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.116 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.117 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.118 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.120 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.121 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.126 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.128 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.129 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.130 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.132 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.134 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.135 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.136 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.139 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.141 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.142 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.143 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.145 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.146 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.147 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.148 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.150 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.151 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.153 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.158 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.159 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.160 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.161 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.163 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.164 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.165 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.166 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.168 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.173 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.174 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.175 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.177 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.178 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.180 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.181 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.182 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.183 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.188 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.189 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.190 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.192 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.193 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.194 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.195 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.196 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.198 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.199 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.204 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.205 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.207 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.208 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.209 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.210 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.211 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.213 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.214 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.215 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.221 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.223 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.224 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.225 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.226 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.227 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.228 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.229 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.231 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.234 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.237 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.238 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:36:29.288 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:36:29.314 G Executed DbCommand ("2"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 12:50:41.657 G Starting web host. +2021-11-03 12:50:50.031 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 12:50:50.109 G Loaded ABP modules: +2021-11-03 12:50:50.111 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 12:50:50.112 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 12:50:50.112 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 12:50:50.113 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 12:50:50.113 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 12:50:50.113 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 12:50:50.114 G - Volo.Abp.Data.AbpDataModule +2021-11-03 12:50:50.114 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 12:50:50.115 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 12:50:50.115 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 12:50:50.116 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 12:50:50.116 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 12:50:50.117 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 12:50:50.117 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 12:50:50.118 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 12:50:50.118 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 12:50:50.118 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 12:50:50.119 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 12:50:50.119 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 12:50:50.120 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 12:50:50.120 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 12:50:50.121 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 12:50:50.121 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 12:50:50.122 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 12:50:50.122 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 12:50:50.123 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 12:50:50.123 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 12:50:50.124 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 12:50:50.125 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 12:50:50.126 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 12:50:50.131 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 12:50:50.133 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 12:50:50.134 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 12:50:50.135 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 12:50:50.135 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 12:50:50.136 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 12:50:50.137 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 12:50:50.137 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 12:50:50.138 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 12:50:50.139 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 12:50:50.140 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 12:50:50.140 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 12:50:50.141 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 12:50:50.144 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 12:50:50.145 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 12:50:50.147 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 12:50:50.147 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 12:50:50.148 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 12:50:50.149 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 12:50:50.149 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 12:50:50.150 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 12:50:50.151 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 12:50:50.152 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 12:50:50.152 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 12:50:50.153 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 12:50:50.154 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 12:50:50.155 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 12:50:50.155 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 12:50:50.156 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 12:50:50.157 G - Volo.Abp.UI.AbpUiModule +2021-11-03 12:50:50.158 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 12:50:50.164 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 12:50:50.165 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 12:50:50.166 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 12:50:50.167 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 12:50:50.168 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 12:50:50.168 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 12:50:50.169 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 12:50:50.170 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 12:50:50.171 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 12:50:50.171 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 12:50:50.172 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 12:50:50.173 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 12:50:50.174 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 12:50:50.176 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 12:50:50.178 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 12:50:50.178 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 12:50:50.179 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 12:50:50.180 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 12:50:50.181 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 12:50:50.181 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 12:50:50.260 G Start installing Hangfire SQL objects... +2021-11-03 12:50:50.425 G Hangfire SQL objects installed. +2021-11-03 12:50:50.441 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:50:50.443 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:50:50.446 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:50:50.517 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:50:50.520 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:50:50.521 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:50:50.767 G Server sk-20210819huao:60836:d04ff72c successfully announced in 274.6402 ms +2021-11-03 12:50:50.767 G Server sk-20210819huao:60836:6b197147 successfully announced in 238.6253 ms +2021-11-03 12:50:50.780 G Server sk-20210819huao:60836:d04ff72c is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:50:50.780 G Server sk-20210819huao:60836:6b197147 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:50:50.823 G 2 servers were removed due to timeout +2021-11-03 12:50:51.078 G Server sk-20210819huao:60836:d04ff72c all the dispatchers started +2021-11-03 12:50:51.095 G Server sk-20210819huao:60836:6b197147 all the dispatchers started +2021-11-03 12:50:52.524 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:50:52.851 G Executed DbCommand ("33"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.944 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.949 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.953 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.962 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.967 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.973 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.977 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.982 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.987 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.991 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:52.997 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.002 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.006 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.010 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.019 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.023 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.027 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.033 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.036 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.040 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.047 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.051 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.057 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.063 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.067 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.071 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.076 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.082 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.088 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.094 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.099 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.103 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.108 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.118 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.123 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.131 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.136 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.145 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.151 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.162 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.167 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.172 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.180 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.184 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.194 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.199 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.204 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.213 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.217 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.224 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.229 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.233 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.241 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.246 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.251 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.261 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.266 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.272 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.277 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.281 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.288 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.292 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.297 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.307 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.312 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.319 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.323 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.328 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.334 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.339 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.343 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.354 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.361 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:50:53.715 G Initialized all ABP modules. +2021-11-03 12:50:53.816 G Now listening on: "http://localhost:44378" +2021-11-03 12:50:53.819 G Application started. Press Ctrl+C to shut down. +2021-11-03 12:50:53.820 G Hosting environment: "Development" +2021-11-03 12:50:53.822 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 12:50:55.635 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 12:50:56.741 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:50:56.800 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 12:50:56.842 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 12:50:56.850 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 39.5621ms +2021-11-03 12:50:56.852 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:50:56.873 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1240.1635ms +2021-11-03 12:50:56.891 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 12:50:56.965 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 73.8828ms +2021-11-03 12:50:57.112 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 12:50:58.150 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 1038.0763ms +2021-11-03 12:51:22.321 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundarywz0QuLXvDxiRXXTz 170569 +2021-11-03 12:51:22.327 G CORS policy execution failed. +2021-11-03 12:51:22.328 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 12:51:22.333 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:51:22.348 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 12:51:23.629 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.632 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.633 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.634 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.635 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.637 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.638 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.639 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.641 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.642 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.644 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.649 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.650 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.652 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.653 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.654 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.656 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.657 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.659 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.660 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.666 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.667 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.668 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.669 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.671 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.672 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.673 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.675 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.680 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.682 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.684 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.685 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.686 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.687 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.688 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.690 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.691 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.696 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.698 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.699 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.700 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.702 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.703 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.704 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.705 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.706 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.712 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.714 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.715 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.716 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.717 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.719 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.720 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.721 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.722 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.726 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.728 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.729 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.730 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.732 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.733 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.735 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.736 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.737 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.738 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.745 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.746 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.747 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.748 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.750 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.751 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.752 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.753 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.754 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.757 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.759 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.760 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.762 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.763 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.764 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.766 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.767 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.768 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.769 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.773 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.774 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.775 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.777 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.778 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.779 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.780 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.781 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.782 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.783 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.784 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.789 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.790 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.791 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:51:23.836 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:51:23.864 G Executed DbCommand ("1"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 12:54:09.387 G Starting web host. +2021-11-03 12:54:17.201 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 12:54:18.179 G Loaded ABP modules: +2021-11-03 12:54:18.180 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 12:54:18.180 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 12:54:18.181 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 12:54:18.181 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 12:54:18.181 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 12:54:18.182 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 12:54:18.182 G - Volo.Abp.Data.AbpDataModule +2021-11-03 12:54:18.182 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 12:54:18.183 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 12:54:18.183 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 12:54:18.184 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 12:54:18.184 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 12:54:18.184 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 12:54:18.185 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 12:54:18.186 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 12:54:18.186 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 12:54:18.187 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 12:54:18.187 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 12:54:18.187 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 12:54:18.188 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 12:54:18.188 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 12:54:18.189 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 12:54:18.189 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 12:54:18.189 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 12:54:18.190 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 12:54:18.190 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 12:54:18.190 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 12:54:18.191 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 12:54:18.192 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 12:54:18.192 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 12:54:18.193 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 12:54:18.194 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 12:54:18.194 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 12:54:18.195 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 12:54:18.196 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 12:54:18.196 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 12:54:18.197 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 12:54:18.198 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 12:54:18.198 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 12:54:18.199 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 12:54:18.200 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 12:54:18.200 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 12:54:18.206 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 12:54:18.207 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 12:54:18.208 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 12:54:18.209 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 12:54:18.210 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 12:54:18.210 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 12:54:18.211 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 12:54:18.212 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 12:54:18.213 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 12:54:18.213 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 12:54:18.214 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 12:54:18.215 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 12:54:18.216 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 12:54:18.216 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 12:54:18.219 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 12:54:18.221 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 12:54:18.222 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 12:54:18.223 G - Volo.Abp.UI.AbpUiModule +2021-11-03 12:54:18.224 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 12:54:18.225 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 12:54:18.226 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 12:54:18.227 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 12:54:18.228 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 12:54:18.230 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 12:54:18.232 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 12:54:18.235 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 12:54:18.236 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 12:54:18.237 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 12:54:18.238 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 12:54:18.239 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 12:54:18.241 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 12:54:18.242 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 12:54:18.244 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 12:54:18.247 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 12:54:18.248 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 12:54:18.250 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 12:54:18.251 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 12:54:18.253 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 12:54:18.254 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 12:54:18.335 G Start installing Hangfire SQL objects... +2021-11-03 12:54:18.475 G Hangfire SQL objects installed. +2021-11-03 12:54:18.490 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:54:18.491 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:54:18.492 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:54:18.546 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 12:54:18.546 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 12:54:18.554 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 12:54:18.747 G Server sk-20210819huao:59048:40afebbf successfully announced in 222.5826 ms +2021-11-03 12:54:18.747 G Server sk-20210819huao:59048:8abe8bd5 successfully announced in 187.0031 ms +2021-11-03 12:54:18.760 G Server sk-20210819huao:59048:40afebbf is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:54:18.760 G Server sk-20210819huao:59048:8abe8bd5 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 12:54:18.978 G Server sk-20210819huao:59048:40afebbf all the dispatchers started +2021-11-03 12:54:18.999 G Server sk-20210819huao:59048:8abe8bd5 all the dispatchers started +2021-11-03 12:54:20.574 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:54:21.029 G Executed DbCommand ("43"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.154 G Executed DbCommand ("3"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.164 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.170 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.183 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.188 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.197 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.201 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.205 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.216 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.221 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.228 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.232 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.237 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.245 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.251 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.260 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.270 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.276 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.281 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.288 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.294 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.298 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.306 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.310 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.314 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.321 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.327 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.341 G Executed DbCommand ("6"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.352 G Executed DbCommand ("7"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.364 G Executed DbCommand ("4"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.373 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.382 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.389 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.402 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.413 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.419 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.425 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.433 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.438 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.448 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.454 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.464 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.469 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.479 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.485 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.494 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.500 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.509 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.514 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.523 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.534 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.541 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.547 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.560 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.566 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.572 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.578 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.589 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.596 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.602 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.607 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.613 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.623 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.632 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.637 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.642 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.649 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.654 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.667 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.672 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.678 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.683 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:21.689 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 12:54:22.054 G Initialized all ABP modules. +2021-11-03 12:54:22.159 G Now listening on: "http://localhost:44378" +2021-11-03 12:54:22.161 G Application started. Press Ctrl+C to shut down. +2021-11-03 12:54:22.162 G Hosting environment: "Development" +2021-11-03 12:54:22.164 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 12:54:23.277 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 12:54:24.171 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:54:24.221 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 12:54:24.247 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 12:54:24.254 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 26.6636ms +2021-11-03 12:54:24.255 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 12:54:24.270 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1001.6061ms +2021-11-03 12:54:24.286 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 12:54:24.350 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 64.4599ms +2021-11-03 12:54:24.476 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 12:54:25.223 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 746.7087ms +2021-11-03 12:54:53.245 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202111 multipart/form-data;+boundary=----WebKitFormBoundary64cnCxBJKBSwHvN4 170569 +2021-11-03 12:54:53.252 G CORS policy execution failed. +2021-11-03 12:54:53.253 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 12:54:53.257 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:54:53.271 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 12:55:01.465 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.467 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.468 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.469 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.472 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.473 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.474 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.476 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.478 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.479 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.481 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.482 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.484 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.485 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.490 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.491 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.492 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.494 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.495 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.497 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.498 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.500 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.501 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.502 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.506 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.509 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.511 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.512 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.514 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.515 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.516 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.517 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.520 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.522 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.523 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.524 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.525 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.528 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.530 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.531 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.532 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.533 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.537 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.538 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.539 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.541 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.542 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.543 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.544 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.545 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.546 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.548 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.549 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.553 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.555 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.556 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.557 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.558 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.560 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.561 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.562 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.564 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.565 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.568 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.569 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.571 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.572 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.573 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.574 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.576 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.577 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.578 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.579 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.580 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.581 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.586 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.588 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.589 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.590 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.591 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.592 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.594 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.595 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.596 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.597 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.600 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.602 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.603 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.604 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.605 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.606 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.607 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.608 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.609 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.610 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.611 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.612 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.617 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 12:55:01.664 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:55:01.689 G Executed DbCommand ("1"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 12:55:02.826 G ---------- RemoteServiceErrorInfo ---------- +{ + "code": "8989", + "message": "\u7B2C3258\u884C*\u91D1\u989Dvalue Invalid, please fill in the correct decimal!|", + "details": "BusinessException: \u7B2C3258\u884C*\u91D1\u989Dvalue Invalid, please fill in the correct decimal!|\r\nSTACK TRACE: at Win.Sfs.SettleAccount.ExcelImporter.ExportImporter.UploadExcelImport[T](IFormFileCollection files, IExcelImportAppService _excelImportService) in C:\\Users\\Administrator\\Source\\Repos\\Win.Sfs.SmartSettlementSystem.PG\\src\\Modules\\SettleAccount\\src\\SettleAccount.Application\\ImportExcelCommon\\ExportImporter.cs:line 154\r\n at Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync(IFormFileCollection files, String version) in C:\\Users\\Administrator\\Source\\Repos\\Win.Sfs.SmartSettlementSystem.PG\\src\\Modules\\SettleAccount\\src\\SettleAccount.Application\\Entities\\Prices\\PriceListAppService.cs:line 166\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at lambda_method1209(Closure , Object )\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeActionMethodAsync\u003Eg__Awaited|12_0(ControllerActionInvoker invoker, ValueTask\u00601 actionResultValueTask)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeNextActionFilterAsync\u003Eg__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State\u0026 next, Scope\u0026 scope, Object\u0026 state, Boolean\u0026 isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeInnerFilterAsync\u003Eg__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.\u003CInvokeNextExceptionFilterAsync\u003Eg__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n", + "data": null, + "validationErrors": null +} + +2021-11-03 12:55:02.834 G 第3258行*金额value Invalid, please fill in the correct decimal!| +Volo.Abp.BusinessException: 第3258行*金额value Invalid, please fill in the correct decimal!| + at Win.Sfs.SettleAccount.ExcelImporter.ExportImporter.UploadExcelImport[T](IFormFileCollection files, IExcelImportAppService _excelImportService) in C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\src\SettleAccount.Application\ImportExcelCommon\ExportImporter.cs:line 154 + at Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync(IFormFileCollection files, String version) in C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\src\SettleAccount.Application\Entities\Prices\PriceListAppService.cs:line 166 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1209(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +2021-11-03 12:55:02.850 G Code:8989 +2021-11-03 12:55:02.851 G Details: +2021-11-03 12:55:02.862 G Executing "ObjectResult", writing value of type '"Volo.Abp.Http.RemoteServiceErrorResponse"'. +2021-11-03 12:55:02.873 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 9595.7101ms +2021-11-03 12:55:02.876 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:55:02.953 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:55:03.152 G Executed DbCommand ("3"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 12:55:03.165 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 12:55:03.171 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 12:55:03.207 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202111 multipart/form-data;+boundary=----WebKitFormBoundary64cnCxBJKBSwHvN4 170569 - 403 - application/json;+charset=utf-8 9962.2003ms +2021-11-03 12:56:46.465 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202111 multipart/form-data;+boundary=----WebKitFormBoundaryQjiQfhmBG1wocRJV 12097 +2021-11-03 12:56:46.473 G CORS policy execution failed. +2021-11-03 12:56:46.474 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 12:56:46.476 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:56:46.478 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 12:56:48.191 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:56:48.202 G Executed DbCommand ("0"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 12:56:51.547 G ---------- RemoteServiceErrorInfo ---------- +{ + "code": null, + "message": "\u8FDD\u53CD\u4E86 PRIMARY KEY \u7EA6\u675F\u201CPK_Set_PriceList\u201D\u3002\u4E0D\u80FD\u5728\u5BF9\u8C61\u201Cdbo.Set_PriceList\u201D\u4E2D\u63D2\u5165\u91CD\u590D\u952E\u3002\u91CD\u590D\u952E\u503C\u4E3A (00000000-0000-0000-0000-000000000000)\u3002\r\n\u8BED\u53E5\u5DF2\u7EC8\u6B62\u3002", + "details": "SqlException: \u8FDD\u53CD\u4E86 PRIMARY KEY \u7EA6\u675F\u201CPK_Set_PriceList\u201D\u3002\u4E0D\u80FD\u5728\u5BF9\u8C61\u201Cdbo.Set_PriceList\u201D\u4E2D\u63D2\u5165\u91CD\u590D\u952E\u3002\u91CD\u590D\u952E\u503C\u4E3A (00000000-0000-0000-0000-000000000000)\u3002\r\n\u8BED\u53E5\u5DF2\u7EC8\u6B62\u3002\r\nSTACK TRACE: at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action\u00601 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action\u00601 wrapCloseInAction)\r\n at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\r\n at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean\u0026 dataReady)\r\n at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)\r\n at Microsoft.Data.SqlClient.SqlBulkCopy.RunParser(BulkCopySimpleResultSet bulkCopyHandler)\r\n at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinuedOnSuccess(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource\u00601 source)\r\n at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinued(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource\u00601 source)\r\n at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsync(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource\u00601 source)\r\n at Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestContinuedAsync(BulkCopySimpleResultSet internalResults, CancellationToken cts, TaskCompletionSource\u00601 source)\r\n--- End of stack trace from previous location ---\r\n at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList\u00601 entities, TableInfo tableInfo, Action\u00601 progress, CancellationToken cancellationToken, Boolean isAsync)\r\n at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList\u00601 entities, TableInfo tableInfo, Action\u00601 progress, CancellationToken cancellationToken, Boolean isAsync)\r\n at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList\u00601 entities, TableInfo tableInfo, Action\u00601 progress, CancellationToken cancellationToken)\r\n at EFCore.BulkExtensions.SqlBulkOperation.InsertAsync[T](DbContext context, Type type, IList\u00601 entities, TableInfo tableInfo, Action\u00601 progress, CancellationToken cancellationToken)\r\n at EFCore.BulkExtensions.DbContextBulkTransaction.ExecuteAsync[T](DbContext context, Type type, IList\u00601 entities, OperationType operationType, BulkConfig bulkConfig, Action\u00601 progress, CancellationToken cancellationToken)\r\n at Win.Sfs.SettleAccount.Entities.Prices.PriceListManager.ImportAsync(List\u00601 entities, String version) in C:\\Users\\Administrator\\Source\\Repos\\Win.Sfs.SmartSettlementSystem.PG\\src\\Modules\\SettleAccount\\src\\SettleAccount.Domain\\Entities\\Prices\\PriceListManager.cs:line 75\r\n at Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync(IFormFileCollection files, String version) in C:\\Users\\Administrator\\Source\\Repos\\Win.Sfs.SmartSettlementSystem.PG\\src\\Modules\\SettleAccount\\src\\SettleAccount.Application\\Entities\\Prices\\PriceListAppService.cs:line 191\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue\u00601.ProceedAsync()\r\n at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation)\r\n at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter\u00601.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func\u00603 proceed)\r\n at lambda_method1209(Closure , Object )\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeActionMethodAsync\u003Eg__Awaited|12_0(ControllerActionInvoker invoker, ValueTask\u00601 actionResultValueTask)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeNextActionFilterAsync\u003Eg__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State\u0026 next, Scope\u0026 scope, Object\u0026 state, Boolean\u0026 isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003CInvokeInnerFilterAsync\u003Eg__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.\u003CInvokeNextExceptionFilterAsync\u003Eg__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n", + "data": null, + "validationErrors": null +} + +2021-11-03 12:56:51.558 G 违反了 PRIMARY KEY 约束“PK_Set_PriceList”。不能在对象“dbo.Set_PriceList”中插入重复键。重复键值为 (00000000-0000-0000-0000-000000000000)。 +语句已终止。 +Microsoft.Data.SqlClient.SqlException (0x80131904): 违反了 PRIMARY KEY 约束“PK_Set_PriceList”。不能在对象“dbo.Set_PriceList”中插入重复键。重复键值为 (00000000-0000-0000-0000-000000000000)。 +语句已终止。 + at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) + at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) + at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) + at Microsoft.Data.SqlClient.SqlBulkCopy.RunParser(BulkCopySimpleResultSet bulkCopyHandler) + at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinuedOnSuccess(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source) + at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinued(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source) + at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsync(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source) + at Microsoft.Data.SqlClient.SqlBulkCopy.WriteToServerInternalRestContinuedAsync(BulkCopySimpleResultSet internalResults, CancellationToken cts, TaskCompletionSource`1 source) +--- End of stack trace from previous location --- + at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress, CancellationToken cancellationToken, Boolean isAsync) + at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress, CancellationToken cancellationToken, Boolean isAsync) + at EFCore.BulkExtensions.SQLAdapters.SQLServer.SqlOperationsServerAdapter.InsertAsync[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress, CancellationToken cancellationToken) + at EFCore.BulkExtensions.SqlBulkOperation.InsertAsync[T](DbContext context, Type type, IList`1 entities, TableInfo tableInfo, Action`1 progress, CancellationToken cancellationToken) + at EFCore.BulkExtensions.DbContextBulkTransaction.ExecuteAsync[T](DbContext context, Type type, IList`1 entities, OperationType operationType, BulkConfig bulkConfig, Action`1 progress, CancellationToken cancellationToken) + at Win.Sfs.SettleAccount.Entities.Prices.PriceListManager.ImportAsync(List`1 entities, String version) in C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\src\SettleAccount.Domain\Entities\Prices\PriceListManager.cs:line 75 + at Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync(IFormFileCollection files, String version) in C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\src\SettleAccount.Application\Entities\Prices\PriceListAppService.cs:line 191 + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo) + at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapterWithReturnValue`1.ProceedAsync() + at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) + at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter`1.InterceptAsync[TResult](IInvocation invocation, IInvocationProceedInfo proceedInfo, Func`3 proceed) + at lambda_method1209(Closure , Object ) + at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) + at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) +ClientConnectionId:abe907d9-0f81-4b49-8e29-a876816da9a0 +Error Number:2627,State:1,Class:14 +2021-11-03 12:56:51.593 G ---------- Exception Data ---------- +HelpLink.ProdName = Microsoft SQL Server +HelpLink.ProdVer = 13.00.1601 +HelpLink.EvtSrc = MSSQLServer +HelpLink.EvtID = 2627 +HelpLink.BaseHelpUrl = https://go.microsoft.com/fwlink +HelpLink.LinkId = 20476 + +2021-11-03 12:56:51.597 G Executing "ObjectResult", writing value of type '"Volo.Abp.Http.RemoteServiceErrorResponse"'. +2021-11-03 12:56:51.599 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 5119.8392ms +2021-11-03 12:56:51.601 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 12:56:51.607 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 12:56:51.613 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 12:56:51.617 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 12:56:51.619 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 12:56:51.622 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202111 multipart/form-data;+boundary=----WebKitFormBoundaryQjiQfhmBG1wocRJV 12097 - 500 - application/json;+charset=utf-8 5157.0817ms +2021-11-03 13:02:46.058 G Starting web host. +2021-11-03 13:02:54.873 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 13:02:54.955 G Loaded ABP modules: +2021-11-03 13:02:54.956 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 13:02:54.956 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 13:02:54.957 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 13:02:54.957 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 13:02:54.958 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 13:02:54.958 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 13:02:54.959 G - Volo.Abp.Data.AbpDataModule +2021-11-03 13:02:54.959 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 13:02:54.960 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 13:02:54.960 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 13:02:54.961 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 13:02:54.961 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 13:02:54.962 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 13:02:54.962 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 13:02:54.963 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 13:02:54.963 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 13:02:54.964 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 13:02:54.964 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 13:02:54.968 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 13:02:54.968 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 13:02:54.969 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 13:02:54.969 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 13:02:54.970 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 13:02:54.970 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 13:02:54.971 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 13:02:54.971 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 13:02:54.972 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 13:02:54.972 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 13:02:54.974 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 13:02:54.975 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 13:02:54.976 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 13:02:54.978 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 13:02:54.979 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 13:02:54.984 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 13:02:54.985 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 13:02:54.987 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 13:02:54.988 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 13:02:54.990 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 13:02:54.991 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 13:02:54.992 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 13:02:54.993 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 13:02:54.994 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 13:02:54.995 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 13:02:54.996 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 13:02:55.000 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 13:02:55.002 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 13:02:55.002 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 13:02:55.003 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 13:02:55.004 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 13:02:55.005 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 13:02:55.006 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 13:02:55.006 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 13:02:55.007 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 13:02:55.008 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 13:02:55.009 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 13:02:55.010 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 13:02:55.011 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 13:02:55.011 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 13:02:55.012 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 13:02:55.017 G - Volo.Abp.UI.AbpUiModule +2021-11-03 13:02:55.018 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 13:02:55.020 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 13:02:55.021 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 13:02:55.022 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 13:02:55.023 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 13:02:55.024 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 13:02:55.025 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 13:02:55.027 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 13:02:55.027 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 13:02:55.030 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 13:02:55.031 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 13:02:55.033 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 13:02:55.033 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 13:02:55.034 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 13:02:55.035 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 13:02:55.035 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 13:02:55.036 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 13:02:55.037 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 13:02:55.038 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 13:02:55.040 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 13:02:55.041 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 13:02:55.138 G Start installing Hangfire SQL objects... +2021-11-03 13:02:55.354 G Hangfire SQL objects installed. +2021-11-03 13:02:55.372 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 13:02:55.375 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 13:02:55.379 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 13:02:55.462 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 13:02:55.464 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 13:02:55.466 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 13:02:55.804 G Server sk-20210819huao:60512:e7979986 successfully announced in 366.8391 ms +2021-11-03 13:02:55.804 G Server sk-20210819huao:60512:860c3714 successfully announced in 323.7844 ms +2021-11-03 13:02:55.817 G Server sk-20210819huao:60512:e7979986 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 13:02:55.817 G Server sk-20210819huao:60512:860c3714 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 13:02:55.851 G 4 servers were removed due to timeout +2021-11-03 13:02:56.162 G Server sk-20210819huao:60512:e7979986 all the dispatchers started +2021-11-03 13:02:56.181 G Server sk-20210819huao:60512:860c3714 all the dispatchers started +2021-11-03 13:02:57.352 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:02:57.697 G Executed DbCommand ("43"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.801 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.805 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.810 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.817 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.822 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.826 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.832 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.838 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.846 G Executed DbCommand ("3"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.851 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.855 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.865 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.869 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.873 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.884 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.888 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.896 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.902 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.907 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.912 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.916 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.920 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.929 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.934 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.939 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.944 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.948 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.952 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.956 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.961 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.970 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.980 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.984 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.990 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.995 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:57.999 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.004 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.013 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.017 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.023 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.028 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.032 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.040 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.045 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.050 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.056 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.061 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.066 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.075 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.080 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.088 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.092 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.099 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.106 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.112 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.120 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.126 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.135 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.140 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.145 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.151 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.156 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.160 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.168 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.172 G Executed DbCommand ("0"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.177 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.181 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.185 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.189 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.199 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.203 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.208 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.216 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:02:58.531 G Initialized all ABP modules. +2021-11-03 13:02:58.627 G Now listening on: "http://localhost:44378" +2021-11-03 13:02:58.628 G Application started. Press Ctrl+C to shut down. +2021-11-03 13:02:58.629 G Hosting environment: "Development" +2021-11-03 13:02:58.630 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 13:02:59.763 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 13:03:00.724 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 13:03:00.789 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 13:03:00.820 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 13:03:00.830 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 29.1723ms +2021-11-03 13:03:00.832 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 13:03:00.849 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1089.2536ms +2021-11-03 13:03:00.866 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 13:03:00.929 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 63.1121ms +2021-11-03 13:03:01.068 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 13:03:01.962 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 893.5367ms +2021-11-03 13:03:38.862 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryvTpZg5fFVE9QhNML 170551 +2021-11-03 13:03:38.881 G CORS policy execution failed. +2021-11-03 13:03:38.882 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 13:03:38.886 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:03:38.900 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 13:03:42.888 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.890 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.891 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.893 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.894 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.897 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.899 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.902 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.903 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.905 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.906 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.907 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.909 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.910 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.912 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.913 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.915 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.918 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.920 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.921 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.923 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.924 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.926 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.927 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.929 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.930 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.934 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.936 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.937 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.939 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.940 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.941 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.942 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.943 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.945 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.946 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.951 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.953 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.954 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.956 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.957 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.958 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.960 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.962 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.966 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.967 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.968 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.970 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.971 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.972 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.973 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.974 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.976 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.980 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.982 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.983 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.984 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.985 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.986 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.988 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.989 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.990 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.996 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.997 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:42.998 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.000 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.001 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.002 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.004 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.005 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.006 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.007 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.012 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.013 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.014 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.015 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.017 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.018 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.019 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.020 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.021 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.023 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.027 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.028 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.030 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.031 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.032 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.033 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.034 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.035 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.037 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.038 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.042 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.043 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.045 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.046 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.047 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.049 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:03:43.096 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:03:43.119 G Executed DbCommand ("2"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 13:03:48.034 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 13:03:48.037 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 9135.3637ms +2021-11-03 13:03:48.039 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:03:48.110 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:03:48.274 G Executed DbCommand ("2"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 13:03:48.288 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:03:48.290 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:03:48.321 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryvTpZg5fFVE9QhNML 170551 - 200 - text/plain;+charset=utf-8 9458.3328ms +2021-11-03 13:04:04.891 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryoKavfJHAzEFrv5sB 12097 +2021-11-03 13:04:04.899 G CORS policy execution failed. +2021-11-03 13:04:04.900 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 13:04:04.902 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:04:04.904 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 13:04:06.719 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:04:06.727 G Executed DbCommand ("0"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[ExtraProperties], [s].[IsCheck], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[NewColumnName], [s].[OldColumnName], [s].[ProjectName], [s].[Remark] +FROM [Set_importmap] AS [s] +WHERE [s].[ProjectName] = N'价格列表'" +2021-11-03 13:04:07.757 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 13:04:07.759 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 2848.4079ms +2021-11-03 13:04:07.760 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:04:07.762 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:04:07.766 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 13:04:07.776 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:04:07.779 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:04:07.783 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryoKavfJHAzEFrv5sB 12097 - 200 - text/plain;+charset=utf-8 2892.3439ms +2021-11-03 13:53:29.607 G Starting web host. +2021-11-03 13:53:38.038 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 13:53:38.101 G Loaded ABP modules: +2021-11-03 13:53:38.102 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 13:53:38.102 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 13:53:38.103 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 13:53:38.103 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 13:53:38.104 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 13:53:38.104 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 13:53:38.105 G - Volo.Abp.Data.AbpDataModule +2021-11-03 13:53:38.105 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 13:53:38.105 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 13:53:38.106 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 13:53:38.106 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 13:53:38.107 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 13:53:38.108 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 13:53:38.109 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 13:53:38.110 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 13:53:38.110 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 13:53:38.111 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 13:53:38.111 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 13:53:38.112 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 13:53:38.112 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 13:53:38.113 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 13:53:38.113 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 13:53:38.113 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 13:53:38.114 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 13:53:38.114 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 13:53:38.115 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 13:53:38.115 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 13:53:38.116 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 13:53:38.116 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 13:53:38.117 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 13:53:38.117 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 13:53:38.118 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 13:53:38.118 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 13:53:38.119 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 13:53:38.119 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 13:53:38.120 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 13:53:38.120 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 13:53:38.121 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 13:53:38.121 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 13:53:38.122 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 13:53:38.123 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 13:53:38.124 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 13:53:38.124 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 13:53:38.125 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 13:53:38.126 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 13:53:38.126 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 13:53:38.127 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 13:53:38.127 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 13:53:38.128 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 13:53:38.128 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 13:53:38.129 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 13:53:38.129 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 13:53:38.130 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 13:53:38.130 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 13:53:38.131 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 13:53:38.131 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 13:53:38.132 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 13:53:38.132 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 13:53:38.133 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 13:53:38.133 G - Volo.Abp.UI.AbpUiModule +2021-11-03 13:53:38.134 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 13:53:38.134 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 13:53:38.135 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 13:53:38.135 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 13:53:38.136 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 13:53:38.136 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 13:53:38.137 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 13:53:38.137 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 13:53:38.138 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 13:53:38.140 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 13:53:38.142 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 13:53:38.142 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 13:53:38.143 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 13:53:38.144 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 13:53:38.144 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 13:53:38.145 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 13:53:38.145 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 13:53:38.148 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 13:53:38.149 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 13:53:38.150 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 13:53:38.150 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 13:53:38.210 G Start installing Hangfire SQL objects... +2021-11-03 13:53:38.334 G Hangfire SQL objects installed. +2021-11-03 13:53:38.345 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 13:53:38.346 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 13:53:38.347 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 13:53:38.391 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 13:53:38.392 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 13:53:38.392 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 13:53:38.578 G Server sk-20210819huao:65672:f8ebe523 successfully announced in 179.9837 ms +2021-11-03 13:53:38.578 G Server sk-20210819huao:65672:34ef1a04 successfully announced in 204.1903 ms +2021-11-03 13:53:38.587 G Server sk-20210819huao:65672:f8ebe523 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 13:53:38.587 G Server sk-20210819huao:65672:34ef1a04 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 13:53:38.617 G 2 servers were removed due to timeout +2021-11-03 13:53:38.794 G Server sk-20210819huao:65672:f8ebe523 all the dispatchers started +2021-11-03 13:53:38.818 G Server sk-20210819huao:65672:34ef1a04 all the dispatchers started +2021-11-03 13:53:39.884 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:53:40.259 G Executed DbCommand ("38"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.345 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.350 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.353 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.357 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.362 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.365 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.368 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.371 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.377 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.381 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.384 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.387 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.412 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.417 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.420 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.423 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.427 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.430 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.433 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.438 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.443 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.446 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.449 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.456 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.463 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.467 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.470 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.473 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.476 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.479 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.483 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.486 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.489 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.492 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.495 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.499 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.504 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.507 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.510 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.513 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.518 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.522 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.525 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.528 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.532 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.535 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.538 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.545 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.552 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.557 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.560 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.565 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.569 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.573 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.577 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.581 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.585 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.589 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.592 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.599 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.602 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.606 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.610 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.614 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.618 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.621 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.624 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.629 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.633 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.638 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.641 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.645 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.648 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 13:53:40.916 G Initialized all ABP modules. +2021-11-03 13:53:40.999 G Now listening on: "http://localhost:44378" +2021-11-03 13:53:41.000 G Application started. Press Ctrl+C to shut down. +2021-11-03 13:53:41.001 G Hosting environment: "Development" +2021-11-03 13:53:41.002 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 13:53:42.056 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 13:53:42.894 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:53:42.912 G Executed DbCommand ("2"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value] +FROM [AbpSettings] AS [a] +WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL" +2021-11-03 13:53:43.038 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:53:43.044 G Executed DbCommand ("1"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[Value] +FROM [AbpSettings] AS [a] +WHERE ([a].[ProviderName] = @__providerName_0) AND [a].[ProviderKey] IS NULL" +2021-11-03 13:53:43.173 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 13:53:43.237 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 13:53:43.272 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 13:53:43.280 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 36.0674ms +2021-11-03 13:53:43.282 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 13:53:43.300 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1245.6411ms +2021-11-03 13:53:43.320 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 13:53:43.400 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 79.6740ms +2021-11-03 13:53:43.562 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 13:53:44.414 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 852.3772ms +2021-11-03 13:59:20.618 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryuwvyAKAuCckkaCGj 12097 +2021-11-03 13:59:20.627 G CORS policy execution failed. +2021-11-03 13:59:20.629 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 13:59:20.633 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:59:20.648 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 13:59:27.661 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.664 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.665 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.666 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.667 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.668 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.669 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.670 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.671 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.678 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.680 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.682 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.683 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.684 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.685 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.686 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.688 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.689 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.691 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.692 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.693 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.694 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.695 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.696 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.698 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.699 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.700 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.701 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.702 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.707 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.711 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.712 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.713 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.714 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.715 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.716 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.717 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.718 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.719 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.720 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.721 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.722 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.723 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.724 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.725 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.726 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.727 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.728 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.729 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.730 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.731 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.732 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.733 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.734 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.734 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.737 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.739 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.740 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.741 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.742 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.743 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.744 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.745 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.746 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.746 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.747 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.748 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.749 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.750 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.751 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.753 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.754 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.755 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.756 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.756 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.757 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.758 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.759 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.760 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.761 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.762 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.763 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.764 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.765 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.766 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.767 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.771 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.772 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.773 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.774 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.775 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.776 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.777 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.778 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.778 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.779 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.780 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.781 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 13:59:27.834 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:59:27.867 G Executed DbCommand ("14"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 13:59:28.003 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 13:59:28.008 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 7358.8445ms +2021-11-03 13:59:28.010 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 13:59:28.091 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 13:59:28.276 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 13:59:28.290 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:59:28.292 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 13:59:28.321 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryuwvyAKAuCckkaCGj 12097 - 200 - text/plain;+charset=utf-8 7703.1800ms +2021-11-03 14:00:30.126 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryfmbfQqTLFlVgtwL7 12097 +2021-11-03 14:00:30.135 G CORS policy execution failed. +2021-11-03 14:00:30.136 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:00:30.138 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:00:30.139 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:00:37.981 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:00:37.990 G Executed DbCommand ("1"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:00:38.020 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:00:38.022 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 7881.5351ms +2021-11-03 14:00:38.023 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:00:38.024 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:00:38.029 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:00:38.032 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:00:38.035 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:00:38.037 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryfmbfQqTLFlVgtwL7 12097 - 200 - text/plain;+charset=utf-8 7910.8243ms +2021-11-03 14:00:52.077 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryAHrP8vKKgGC1IaQv 12097 +2021-11-03 14:00:52.079 G CORS policy execution failed. +2021-11-03 14:00:52.081 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:00:52.084 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:00:52.086 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:00:54.482 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:00:54.492 G Executed DbCommand ("2"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:00:54.523 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:00:54.525 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 2437.7141ms +2021-11-03 14:00:54.526 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:00:54.529 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:00:54.537 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:00:54.539 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:00:54.541 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:00:54.545 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryAHrP8vKKgGC1IaQv 12097 - 200 - text/plain;+charset=utf-8 2467.1006ms +2021-11-03 14:03:35.864 G Starting web host. +2021-11-03 14:03:44.074 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 14:03:44.151 G Loaded ABP modules: +2021-11-03 14:03:44.152 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 14:03:44.153 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 14:03:44.154 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 14:03:44.154 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 14:03:44.155 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 14:03:44.156 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 14:03:44.157 G - Volo.Abp.Data.AbpDataModule +2021-11-03 14:03:44.157 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 14:03:44.158 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 14:03:44.158 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 14:03:44.159 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 14:03:44.160 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 14:03:44.160 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 14:03:44.161 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 14:03:44.163 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 14:03:44.164 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 14:03:44.164 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 14:03:44.165 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 14:03:44.165 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 14:03:44.166 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 14:03:44.166 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 14:03:44.167 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 14:03:44.167 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 14:03:44.168 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 14:03:44.168 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 14:03:44.168 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 14:03:44.169 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 14:03:44.170 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 14:03:44.170 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 14:03:44.171 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 14:03:44.173 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 14:03:44.174 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 14:03:44.175 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 14:03:44.176 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 14:03:44.180 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 14:03:44.184 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 14:03:44.185 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 14:03:44.187 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 14:03:44.188 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 14:03:44.189 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 14:03:44.190 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 14:03:44.190 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 14:03:44.191 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 14:03:44.192 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 14:03:44.194 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 14:03:44.196 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 14:03:44.197 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 14:03:44.198 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 14:03:44.199 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 14:03:44.200 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 14:03:44.201 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 14:03:44.202 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 14:03:44.204 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 14:03:44.205 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 14:03:44.207 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 14:03:44.208 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 14:03:44.210 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 14:03:44.212 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 14:03:44.213 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 14:03:44.214 G - Volo.Abp.UI.AbpUiModule +2021-11-03 14:03:44.217 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 14:03:44.219 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 14:03:44.220 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 14:03:44.221 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 14:03:44.222 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 14:03:44.226 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 14:03:44.233 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 14:03:44.234 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 14:03:44.235 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 14:03:44.236 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 14:03:44.237 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 14:03:44.240 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 14:03:44.242 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 14:03:44.244 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 14:03:44.245 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 14:03:44.246 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 14:03:44.247 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 14:03:44.248 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 14:03:44.248 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 14:03:44.249 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 14:03:44.250 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 14:03:44.350 G Start installing Hangfire SQL objects... +2021-11-03 14:03:44.505 G Hangfire SQL objects installed. +2021-11-03 14:03:44.521 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 14:03:44.522 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 14:03:44.524 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 14:03:44.626 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 14:03:44.627 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 14:03:44.628 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 14:03:44.838 G Server sk-20210819huao:62404:2abcb75e successfully announced in 195.3004 ms +2021-11-03 14:03:44.838 G Server sk-20210819huao:62404:2e6412da successfully announced in 236.0642 ms +2021-11-03 14:03:44.846 G Server sk-20210819huao:62404:2e6412da is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 14:03:44.862 G Server sk-20210819huao:62404:2abcb75e is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 14:03:45.283 G Server sk-20210819huao:62404:2abcb75e all the dispatchers started +2021-11-03 14:03:45.285 G Server sk-20210819huao:62404:2e6412da all the dispatchers started +2021-11-03 14:03:46.828 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:03:47.366 G Executed DbCommand ("36"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.478 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.482 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.485 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.490 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.495 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.499 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.502 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.507 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.512 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.515 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.519 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.524 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.528 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.531 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.534 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.538 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.542 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.546 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.549 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.557 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.561 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.565 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.571 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.575 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.579 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.583 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.587 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.590 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.594 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.598 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.605 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.608 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.613 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.620 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.624 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.629 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.637 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.643 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.660 G Executed DbCommand ("7"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.668 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.673 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.678 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.683 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.687 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.693 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.700 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.704 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.710 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.714 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.719 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.725 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.732 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.738 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.748 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.760 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.766 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.774 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.779 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.783 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.789 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.795 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.800 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.807 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.812 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.817 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.823 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.829 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.835 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.843 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.849 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.855 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.860 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:47.865 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:03:48.270 G Initialized all ABP modules. +2021-11-03 14:03:48.375 G Now listening on: "http://localhost:44378" +2021-11-03 14:03:48.376 G Application started. Press Ctrl+C to shut down. +2021-11-03 14:03:48.377 G Hosting environment: "Development" +2021-11-03 14:03:48.377 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 14:03:49.869 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 14:03:50.829 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 14:03:50.879 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 14:03:50.916 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 14:03:50.923 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 33.127ms +2021-11-03 14:03:50.925 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 14:03:50.942 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1076.7475ms +2021-11-03 14:03:50.958 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 14:03:51.018 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 60.3679ms +2021-11-03 14:03:51.195 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 14:03:51.995 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 800.4973ms +2021-11-03 14:04:38.843 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map multipart/form-data;+boundary=----WebKitFormBoundaryk4Q5qf21GFDsx3mh 170551 +2021-11-03 14:04:38.855 G CORS policy execution failed. +2021-11-03 14:04:38.856 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:04:38.858 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:04:38.871 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:04:46.446 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.449 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.451 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.452 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.453 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.453 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.454 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.455 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.456 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.457 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.458 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.459 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.460 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.462 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.463 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.464 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.465 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.466 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.466 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.467 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.468 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.469 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.470 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.471 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.471 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.472 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.473 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.474 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.475 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.476 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.476 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.477 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.479 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.481 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.481 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.482 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.483 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.484 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.485 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.485 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.486 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.487 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.488 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.489 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.490 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.490 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.491 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.492 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.494 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.497 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.498 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.499 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.500 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.501 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.501 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.502 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.503 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.504 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.505 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.505 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.506 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.507 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.508 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.510 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.511 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.512 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.512 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.513 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.514 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.515 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.516 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.516 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.517 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.518 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.519 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.520 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.520 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.521 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.522 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.523 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.524 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.525 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.527 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.528 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.529 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.529 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.530 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.531 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.532 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.533 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.533 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.534 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.535 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.536 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.537 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.538 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.539 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.539 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:04:46.584 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:04:46.610 G Executed DbCommand ("7"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] IS NULL" +2021-11-03 14:04:46.812 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:04:46.816 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 7943.8483ms +2021-11-03 14:04:46.821 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:04:46.922 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:04:47.128 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:04:47.137 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:04:47.139 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:04:47.164 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map multipart/form-data;+boundary=----WebKitFormBoundaryk4Q5qf21GFDsx3mh 170551 - 200 - text/plain;+charset=utf-8 8321.0836ms +2021-11-03 14:05:54.511 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map multipart/form-data;+boundary=----WebKitFormBoundaryEBAXwF6rqUTbEwvA 170551 +2021-11-03 14:05:54.520 G CORS policy execution failed. +2021-11-03 14:05:54.521 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:05:54.523 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:05:54.524 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:06:47.552 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:06:47.560 G Executed DbCommand ("1"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] IS NULL" +2021-11-03 14:06:47.639 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:06:47.640 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 53115.5707ms +2021-11-03 14:06:47.641 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:06:47.643 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:06:47.647 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:06:47.649 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:06:47.652 G Executed DbCommand ("2"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:06:47.656 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map multipart/form-data;+boundary=----WebKitFormBoundaryEBAXwF6rqUTbEwvA 170551 - 200 - text/plain;+charset=utf-8 53144.9334ms +2021-11-03 14:07:03.915 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundary4EhTyiIyhFVxxziQ 170551 +2021-11-03 14:07:03.917 G CORS policy execution failed. +2021-11-03 14:07:03.917 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:07:03.920 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:07:03.929 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:07:06.325 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:07:06.329 G Executed DbCommand ("1"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:07:06.484 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:07:06.485 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 2554.0859ms +2021-11-03 14:07:06.486 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:07:06.487 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:07:06.491 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:07:06.494 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:07:06.496 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:07:06.499 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundary4EhTyiIyhFVxxziQ 170551 - 200 - text/plain;+charset=utf-8 2583.9929ms +2021-11-03 14:08:15.466 G Starting web host. +2021-11-03 14:08:23.508 G User profile is available. Using '"C:\Users\Administrator\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-11-03 14:08:23.620 G Loaded ABP modules: +2021-11-03 14:08:23.621 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-11-03 14:08:23.621 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-11-03 14:08:23.621 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-11-03 14:08:23.622 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-11-03 14:08:23.622 G - Volo.Abp.Domain.AbpDddDomainModule +2021-11-03 14:08:23.623 G - Volo.Abp.Auditing.AbpAuditingModule +2021-11-03 14:08:23.623 G - Volo.Abp.Data.AbpDataModule +2021-11-03 14:08:23.624 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-11-03 14:08:23.625 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-11-03 14:08:23.626 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-11-03 14:08:23.627 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-11-03 14:08:23.627 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-11-03 14:08:23.628 G - Volo.Abp.Json.AbpJsonModule +2021-11-03 14:08:23.628 G - Volo.Abp.Timing.AbpTimingModule +2021-11-03 14:08:23.629 G - Volo.Abp.Localization.AbpLocalizationModule +2021-11-03 14:08:23.629 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-11-03 14:08:23.630 G - Volo.Abp.Settings.AbpSettingsModule +2021-11-03 14:08:23.630 G - Volo.Abp.Security.AbpSecurityModule +2021-11-03 14:08:23.631 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-11-03 14:08:23.631 G - Volo.Abp.Threading.AbpThreadingModule +2021-11-03 14:08:23.631 G - Volo.Abp.EventBus.AbpEventBusModule +2021-11-03 14:08:23.632 G - Volo.Abp.Guids.AbpGuidsModule +2021-11-03 14:08:23.632 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-11-03 14:08:23.632 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-11-03 14:08:23.633 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-11-03 14:08:23.633 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-11-03 14:08:23.634 G - Volo.Abp.Validation.AbpValidationModule +2021-11-03 14:08:23.634 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-11-03 14:08:23.635 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-11-03 14:08:23.635 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-11-03 14:08:23.636 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-11-03 14:08:23.636 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-11-03 14:08:23.637 G - Volo.Abp.Dapper.AbpDapperModule +2021-11-03 14:08:23.637 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-11-03 14:08:23.637 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-11-03 14:08:23.638 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-11-03 14:08:23.638 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-11-03 14:08:23.639 G - Volo.Abp.Http.AbpHttpModule +2021-11-03 14:08:23.640 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-11-03 14:08:23.640 G - Volo.Abp.Minify.AbpMinifyModule +2021-11-03 14:08:23.641 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-11-03 14:08:23.642 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-11-03 14:08:23.643 G - Volo.Abp.Caching.AbpCachingModule +2021-11-03 14:08:23.644 G - Volo.Abp.Serialization.AbpSerializationModule +2021-11-03 14:08:23.644 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-11-03 14:08:23.645 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-11-03 14:08:23.645 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-11-03 14:08:23.646 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-11-03 14:08:23.647 G - Volo.Abp.Features.AbpFeaturesModule +2021-11-03 14:08:23.647 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-11-03 14:08:23.649 G - Volo.Abp.Application.AbpDddApplicationModule +2021-11-03 14:08:23.653 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-11-03 14:08:23.654 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-11-03 14:08:23.655 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-11-03 14:08:23.655 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-11-03 14:08:23.656 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-11-03 14:08:23.658 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-11-03 14:08:23.659 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-11-03 14:08:23.659 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-11-03 14:08:23.660 G - Volo.Abp.UI.AbpUiModule +2021-11-03 14:08:23.661 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-11-03 14:08:23.661 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-11-03 14:08:23.662 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-11-03 14:08:23.662 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-11-03 14:08:23.663 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-11-03 14:08:23.664 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-11-03 14:08:23.664 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-11-03 14:08:23.665 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-11-03 14:08:23.666 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-11-03 14:08:23.667 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-11-03 14:08:23.668 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-11-03 14:08:23.668 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-11-03 14:08:23.669 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-11-03 14:08:23.670 G - Volo.Abp.Autofac.AbpAutofacModule +2021-11-03 14:08:23.670 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-11-03 14:08:23.671 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-11-03 14:08:23.672 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-11-03 14:08:23.673 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-11-03 14:08:23.676 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-11-03 14:08:23.678 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-11-03 14:08:23.679 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-11-03 14:08:23.792 G Start installing Hangfire SQL objects... +2021-11-03 14:08:24.027 G Hangfire SQL objects installed. +2021-11-03 14:08:24.040 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 14:08:24.041 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 14:08:24.043 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 14:08:24.113 G Starting Hangfire Server using job storage: 'SQL Server: 127.0.0.1@SettleAccountService' +2021-11-03 14:08:24.114 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-11-03 14:08:24.115 G Using the following options for Hangfire Server: + Worker count: 20 + Listening queues: 'default' + Shutdown timeout: 00:00:15 + Schedule polling interval: 00:00:15 +2021-11-03 14:08:24.355 G Server sk-20210819huao:10212:debbcf0a successfully announced in 234.6816 ms +2021-11-03 14:08:24.355 G Server sk-20210819huao:10212:0b4fee1e successfully announced in 265.2425 ms +2021-11-03 14:08:24.366 G Server sk-20210819huao:10212:0b4fee1e is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 14:08:24.366 G Server sk-20210819huao:10212:debbcf0a is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-11-03 14:08:24.403 G 2 servers were removed due to timeout +2021-11-03 14:08:24.596 G Server sk-20210819huao:10212:0b4fee1e all the dispatchers started +2021-11-03 14:08:24.620 G Server sk-20210819huao:10212:debbcf0a all the dispatchers started +2021-11-03 14:08:25.721 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:08:26.034 G Executed DbCommand ("28"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.118 G Executed DbCommand ("2"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.122 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.126 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.130 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.133 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.136 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.143 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.146 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.149 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.152 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.156 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.159 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.162 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.165 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.169 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.172 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.175 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.178 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.181 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.184 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.189 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.193 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.196 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.200 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.204 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.208 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.211 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.214 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.222 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.227 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.232 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.235 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.238 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.241 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.244 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.247 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.251 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.254 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.258 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.261 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.268 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.271 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.275 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.279 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.282 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.285 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.288 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.291 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.295 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.298 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.301 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.304 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.307 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.311 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.315 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.318 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.321 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.324 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.330 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.337 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.341 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.345 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.349 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.352 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.356 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.361 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.365 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.368 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.373 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.381 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.384 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.388 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.392 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-11-03 14:08:26.649 G Initialized all ABP modules. +2021-11-03 14:08:26.734 G Now listening on: "http://localhost:44378" +2021-11-03 14:08:26.736 G Application started. Press Ctrl+C to shut down. +2021-11-03 14:08:26.736 G Hosting environment: "Development" +2021-11-03 14:08:26.737 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-11-03 14:08:27.924 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-11-03 14:08:28.848 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 14:08:28.943 G Route matched with "{action = \"Index\", controller = \"Home\", area = \"\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.ActionResult Index()" on controller "Win.Sfs.SettleAccount.Controllers.HomeController" ("SettleAccount.HttpApi.Host"). +2021-11-03 14:08:28.978 G Executing RedirectResult, redirecting to "/swagger". +2021-11-03 14:08:28.985 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 35.5869ms +2021-11-03 14:08:28.987 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-11-03 14:08:29.005 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1089.4807ms +2021-11-03 14:08:29.023 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-11-03 14:08:29.086 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 63.5510ms +2021-11-03 14:08:29.253 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-11-03 14:08:30.097 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 843.7777ms +2021-11-03 14:12:34.884 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryDMcUKuYGpWXgf95g 170551 +2021-11-03 14:12:34.899 G CORS policy execution failed. +2021-11-03 14:12:34.899 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:12:34.903 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:12:34.916 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:12:58.978 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.980 G No type was specified for the decimal property '"ConsignQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.983 G No type was specified for the decimal property '"NeedQty"' on entity type '"BTNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.984 G No type was specified for the decimal property '"DiffQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.985 G No type was specified for the decimal property '"KBQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.986 G No type was specified for the decimal property '"SeqQty"' on entity type '"BTSeqKBDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.987 G No type was specified for the decimal property '"Qty"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.987 G No type was specified for the decimal property '"ScrapPercent"' on entity type '"Bom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.988 G No type was specified for the decimal property '"TaxRate"' on entity type '"Customer"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.989 G No type was specified for the decimal property '"Qty"' on entity type '"CustomerBom"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.990 G No type was specified for the decimal property '"Qty"' on entity type '"CarMaterialConfig"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.991 G No type was specified for the decimal property '"Qty"' on entity type '"EstimatedSum"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.992 G No type was specified for the decimal property '"Qty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.992 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS_TH"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.993 G No type was specified for the decimal property '"Qty"' on entity type '"HQConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.994 G No type was specified for the decimal property '"Qty"' on entity type '"HQSpecConsign"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.995 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.996 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:58.997 G No type was specified for the decimal property '"ConsignQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.000 G No type was specified for the decimal property '"NeedQty"' on entity type '"HQSpecKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.001 G No type was specified for the decimal property '"Amt"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.002 G No type was specified for the decimal property '"Qty"' on entity type '"Invoice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.003 G No type was specified for the decimal property '"ExtendedMargin"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.005 G No type was specified for the decimal property '"ExtendedPrice"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.005 G No type was specified for the decimal property '"Price"' on entity type '"ItemInvoicePrice"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.006 G No type was specified for the decimal property '"Qty"' on entity type '"MaterialRelationshipDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.008 G No type was specified for the decimal property '"Price"' on entity type '"PriceList"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.010 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.011 G No type was specified for the decimal property '"DiffPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.012 G No type was specified for the decimal property '"Price"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.013 G No type was specified for the decimal property '"RealSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.014 G No type was specified for the decimal property '"RealSettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.014 G No type was specified for the decimal property '"SettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.015 G No type was specified for the decimal property '"SettlementPrice"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.016 G No type was specified for the decimal property '"SupplyProportion"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.017 G No type was specified for the decimal property '"TheoreticalSettlementNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.018 G No type was specified for the decimal property '"UsedNumber"' on entity type '"SecMatchBase"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.018 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.019 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.020 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryAdjustment"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.021 G No type was specified for the decimal property '"Amt"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.022 G No type was specified for the decimal property '"Qty"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.023 G No type was specified for the decimal property '"Total"' on entity type '"SecondaryDiscount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.023 G No type was specified for the decimal property '"CustomItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.024 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.025 G No type was specified for the decimal property '"SupplyProportionPrice"' on entity type '"SecondaryPriceRatio"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.026 G No type was specified for the decimal property '"Qty"' on entity type '"SettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.027 G No type was specified for the decimal property '"Qty"' on entity type '"UnSettleAccount"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.029 G No type was specified for the decimal property '"PerCarNum"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.030 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.031 G No type was specified for the decimal property '"QuantityPrice"' on entity type '"SettlementPakAndSpareParts"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.031 G No type was specified for the decimal property '"Price"' on entity type '"SettlementPart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.032 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.033 G No type was specified for the decimal property '"ReceiveQty"' on entity type '"EstimatedInventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.034 G No type was specified for the decimal property '"DiffQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.035 G No type was specified for the decimal property '"EstimationQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.035 G No type was specified for the decimal property '"FgQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.036 G No type was specified for the decimal property '"StockQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.037 G No type was specified for the decimal property '"UnSettledQty"' on entity type '"EstimatedStockDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.038 G No type was specified for the decimal property '"Qty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.039 G No type was specified for the decimal property '"SettledQty"' on entity type '"FIS"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.040 G No type was specified for the decimal property '"Qty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.040 G No type was specified for the decimal property '"SettledQty"' on entity type '"FISExtend"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.041 G No type was specified for the decimal property '"EndingInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.042 G No type was specified for the decimal property '"InputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.044 G No type was specified for the decimal property '"OpeningInventoryQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.046 G No type was specified for the decimal property '"OutputQty"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.047 G No type was specified for the decimal property '"Price"' on entity type '"InventoryDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.048 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFCarKB"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.049 G No type was specified for the decimal property '"ConsignQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.050 G No type was specified for the decimal property '"InStockQty"' on entity type '"JFNotConsignReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.050 G No type was specified for the decimal property '"DiffQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.051 G No type was specified for the decimal property '"InvoiceQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.052 G No type was specified for the decimal property '"SettleQty"' on entity type '"InvoiceSettledDiff"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.053 G No type was specified for the decimal property '"CustomSubItemPrice"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.054 G No type was specified for the decimal property '"CustomSubItemSumQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.055 G No type was specified for the decimal property '"ErpSubItemActualQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.056 G No type was specified for the decimal property '"ErpSubItemQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.056 G No type was specified for the decimal property '"OfflineQty"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.057 G No type was specified for the decimal property '"SumPriceNoTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.058 G No type was specified for the decimal property '"SumPriceWithTax"' on entity type '"SecondaryActuralAdjustmentReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.060 G No type was specified for the decimal property '"ActNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.061 G No type was specified for the decimal property '"ActPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.062 G No type was specified for the decimal property '"DiffAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.063 G No type was specified for the decimal property '"DiffQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.064 G No type was specified for the decimal property '"StaPaymentPartyQty"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.065 G No type was specified for the decimal property '"StdNoTaxAmount"' on entity type '"SecondaryActuralDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.065 G No type was specified for the decimal property '"Qty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.066 G No type was specified for the decimal property '"SettledQty"' on entity type '"SendUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.067 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.068 G No type was specified for the decimal property '"FisQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.068 G No type was specified for the decimal property '"StockQty"' on entity type '"StockFisDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.069 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.070 G No type was specified for the decimal property '"R3SettledQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.071 G No type was specified for the decimal property '"StockQty"' on entity type '"StockSettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.072 G No type was specified for the decimal property '"DiffQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.072 G No type was specified for the decimal property '"FisUnSettledQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.073 G No type was specified for the decimal property '"StockQty"' on entity type '"StockUnsettledDiffReportDetail"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. +2021-11-03 14:12:59.120 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:12:59.143 G Executed DbCommand ("1"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:12:59.334 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:12:59.337 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 24419.6167ms +2021-11-03 14:12:59.338 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:12:59.425 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:12:59.577 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:12:59.587 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:12:59.589 G Executed DbCommand ("0"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:12:59.616 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundaryDMcUKuYGpWXgf95g 170551 - 200 - text/plain;+charset=utf-8 24731.3008ms +2021-11-03 14:13:13.685 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundary80eGNCyyAYUj5RBc 170551 +2021-11-03 14:13:13.708 G CORS policy execution failed. +2021-11-03 14:13:13.709 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:13:13.713 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:13:13.714 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:13:15.936 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:13:15.944 G Executed DbCommand ("1"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:13:16.547 G Executed DbCommand ("59"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.565 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.577 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.590 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.601 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.612 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.623 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.635 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.646 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.657 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.669 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.679 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.690 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.702 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.713 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.724 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.734 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.747 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.762 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.773 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.787 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.800 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.815 G Executed DbCommand ("5"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.833 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.847 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.861 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.873 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.885 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.898 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.908 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.919 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.949 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.976 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:16.992 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.006 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.019 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.027 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.035 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.041 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.049 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.056 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.066 G Executed DbCommand ("6"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.072 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.081 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.088 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.096 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.102 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.109 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.116 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.122 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.129 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.136 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.143 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.150 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.157 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.164 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.172 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.179 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.186 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.193 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.201 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.207 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.215 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.222 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.229 G Executed DbCommand ("4"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.236 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.243 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.250 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.257 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.265 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.271 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.279 G Executed DbCommand ("3"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.285 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.292 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.299 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.306 G Executed DbCommand ("2"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:17.363 G Executed DbCommand ("52"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:19.979 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:13:19.982 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 6267.3004ms +2021-11-03 14:13:19.984 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:13:19.985 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:13:19.990 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:13:19.994 G Executed DbCommand ("2"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:13:19.997 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:13:20.000 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundary80eGNCyyAYUj5RBc 170551 - 200 - text/plain;+charset=utf-8 6314.3944ms +2021-11-03 14:13:24.439 G 2 servers were removed due to timeout +2021-11-03 14:13:32.233 G Request starting HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundarycstRnhL2103jdRBu 12097 +2021-11-03 14:13:32.234 G CORS policy execution failed. +2021-11-03 14:13:32.235 G Request origin "http://localhost:44378" does not have permission to access the resource. +2021-11-03 14:13:32.247 G Executing endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:13:32.249 G Route matched with "{action = \"Import\", controller = \"PriceList\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection, System.String)" on controller "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService" ("SettleAccount.Application"). +2021-11-03 14:13:34.192 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:13:34.195 G Executed DbCommand ("1"ms) [Parameters=["@__version_0='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" +""SELECT [s].[Id], [s].[BeginDate], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[CreatorId], [s].[CustomerCode], [s].[DeleterId], [s].[DeletionTime], [s].[Enabled], [s].[EndDate], [s].[ExtraProperties], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[MaterialCode], [s].[ParentId], [s].[Price], [s].[Remark], [s].[Type], [s].[Version] +FROM [Set_PriceList] AS [s] +WHERE [s].[Version] = @__version_0" +2021-11-03 14:13:34.450 G Executed DbCommand ("5"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p63='?' (DbType = Guid), @p60='?' (Size = 40), @p64='?' (Size = 40), @p61='?' (DbType = DateTime2), @p62='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p68='?' (DbType = Guid), @p65='?' (Size = 40), @p69='?' (Size = 40), @p66='?' (DbType = DateTime2), @p67='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p73='?' (DbType = Guid), @p70='?' (Size = 40), @p74='?' (Size = 40), @p71='?' (DbType = DateTime2), @p72='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p78='?' (DbType = Guid), @p75='?' (Size = 40), @p79='?' (Size = 40), @p76='?' (DbType = DateTime2), @p77='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p83='?' (DbType = Guid), @p80='?' (Size = 40), @p84='?' (Size = 40), @p81='?' (DbType = DateTime2), @p82='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p88='?' (DbType = Guid), @p85='?' (Size = 40), @p89='?' (Size = 40), @p86='?' (DbType = DateTime2), @p87='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p93='?' (DbType = Guid), @p90='?' (Size = 40), @p94='?' (Size = 40), @p91='?' (DbType = DateTime2), @p92='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p98='?' (DbType = Guid), @p95='?' (Size = 40), @p99='?' (Size = 40), @p96='?' (DbType = DateTime2), @p97='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p103='?' (DbType = Guid), @p100='?' (Size = 40), @p104='?' (Size = 40), @p101='?' (DbType = DateTime2), @p102='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p108='?' (DbType = Guid), @p105='?' (Size = 40), @p109='?' (Size = 40), @p106='?' (DbType = DateTime2), @p107='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p113='?' (DbType = Guid), @p110='?' (Size = 40), @p114='?' (Size = 40), @p111='?' (DbType = DateTime2), @p112='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p118='?' (DbType = Guid), @p115='?' (Size = 40), @p119='?' (Size = 40), @p116='?' (DbType = DateTime2), @p117='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p123='?' (DbType = Guid), @p120='?' (Size = 40), @p124='?' (Size = 40), @p121='?' (DbType = DateTime2), @p122='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p128='?' (DbType = Guid), @p125='?' (Size = 40), @p129='?' (Size = 40), @p126='?' (DbType = DateTime2), @p127='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p133='?' (DbType = Guid), @p130='?' (Size = 40), @p134='?' (Size = 40), @p131='?' (DbType = DateTime2), @p132='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p138='?' (DbType = Guid), @p135='?' (Size = 40), @p139='?' (Size = 40), @p136='?' (DbType = DateTime2), @p137='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p143='?' (DbType = Guid), @p140='?' (Size = 40), @p144='?' (Size = 40), @p141='?' (DbType = DateTime2), @p142='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p148='?' (DbType = Guid), @p145='?' (Size = 40), @p149='?' (Size = 40), @p146='?' (DbType = DateTime2), @p147='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p153='?' (DbType = Guid), @p150='?' (Size = 40), @p154='?' (Size = 40), @p151='?' (DbType = DateTime2), @p152='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p158='?' (DbType = Guid), @p155='?' (Size = 40), @p159='?' (Size = 40), @p156='?' (DbType = DateTime2), @p157='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p163='?' (DbType = Guid), @p160='?' (Size = 40), @p164='?' (Size = 40), @p161='?' (DbType = DateTime2), @p162='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p168='?' (DbType = Guid), @p165='?' (Size = 40), @p169='?' (Size = 40), @p166='?' (DbType = DateTime2), @p167='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p173='?' (DbType = Guid), @p170='?' (Size = 40), @p174='?' (Size = 40), @p171='?' (DbType = DateTime2), @p172='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p178='?' (DbType = Guid), @p175='?' (Size = 40), @p179='?' (Size = 40), @p176='?' (DbType = DateTime2), @p177='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p183='?' (DbType = Guid), @p180='?' (Size = 40), @p184='?' (Size = 40), @p181='?' (DbType = DateTime2), @p182='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p188='?' (DbType = Guid), @p185='?' (Size = 40), @p189='?' (Size = 40), @p186='?' (DbType = DateTime2), @p187='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p193='?' (DbType = Guid), @p190='?' (Size = 40), @p194='?' (Size = 40), @p191='?' (DbType = DateTime2), @p192='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p198='?' (DbType = Guid), @p195='?' (Size = 40), @p199='?' (Size = 40), @p196='?' (DbType = DateTime2), @p197='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p203='?' (DbType = Guid), @p200='?' (Size = 40), @p204='?' (Size = 40), @p201='?' (DbType = DateTime2), @p202='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p208='?' (DbType = Guid), @p205='?' (Size = 40), @p209='?' (Size = 40), @p206='?' (DbType = DateTime2), @p207='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p60, [LastModificationTime] = @p61, [Price] = @p62 +WHERE [Id] = @p63 AND [ConcurrencyStamp] = @p64; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p65, [LastModificationTime] = @p66, [Price] = @p67 +WHERE [Id] = @p68 AND [ConcurrencyStamp] = @p69; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p70, [LastModificationTime] = @p71, [Price] = @p72 +WHERE [Id] = @p73 AND [ConcurrencyStamp] = @p74; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p75, [LastModificationTime] = @p76, [Price] = @p77 +WHERE [Id] = @p78 AND [ConcurrencyStamp] = @p79; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p80, [LastModificationTime] = @p81, [Price] = @p82 +WHERE [Id] = @p83 AND [ConcurrencyStamp] = @p84; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p85, [LastModificationTime] = @p86, [Price] = @p87 +WHERE [Id] = @p88 AND [ConcurrencyStamp] = @p89; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p90, [LastModificationTime] = @p91, [Price] = @p92 +WHERE [Id] = @p93 AND [ConcurrencyStamp] = @p94; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p95, [LastModificationTime] = @p96, [Price] = @p97 +WHERE [Id] = @p98 AND [ConcurrencyStamp] = @p99; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p100, [LastModificationTime] = @p101, [Price] = @p102 +WHERE [Id] = @p103 AND [ConcurrencyStamp] = @p104; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p105, [LastModificationTime] = @p106, [Price] = @p107 +WHERE [Id] = @p108 AND [ConcurrencyStamp] = @p109; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p110, [LastModificationTime] = @p111, [Price] = @p112 +WHERE [Id] = @p113 AND [ConcurrencyStamp] = @p114; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p115, [LastModificationTime] = @p116, [Price] = @p117 +WHERE [Id] = @p118 AND [ConcurrencyStamp] = @p119; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p120, [LastModificationTime] = @p121, [Price] = @p122 +WHERE [Id] = @p123 AND [ConcurrencyStamp] = @p124; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p125, [LastModificationTime] = @p126, [Price] = @p127 +WHERE [Id] = @p128 AND [ConcurrencyStamp] = @p129; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p130, [LastModificationTime] = @p131, [Price] = @p132 +WHERE [Id] = @p133 AND [ConcurrencyStamp] = @p134; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p135, [LastModificationTime] = @p136, [Price] = @p137 +WHERE [Id] = @p138 AND [ConcurrencyStamp] = @p139; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p140, [LastModificationTime] = @p141, [Price] = @p142 +WHERE [Id] = @p143 AND [ConcurrencyStamp] = @p144; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p145, [LastModificationTime] = @p146, [Price] = @p147 +WHERE [Id] = @p148 AND [ConcurrencyStamp] = @p149; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p150, [LastModificationTime] = @p151, [Price] = @p152 +WHERE [Id] = @p153 AND [ConcurrencyStamp] = @p154; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p155, [LastModificationTime] = @p156, [Price] = @p157 +WHERE [Id] = @p158 AND [ConcurrencyStamp] = @p159; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p160, [LastModificationTime] = @p161, [Price] = @p162 +WHERE [Id] = @p163 AND [ConcurrencyStamp] = @p164; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p165, [LastModificationTime] = @p166, [Price] = @p167 +WHERE [Id] = @p168 AND [ConcurrencyStamp] = @p169; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p170, [LastModificationTime] = @p171, [Price] = @p172 +WHERE [Id] = @p173 AND [ConcurrencyStamp] = @p174; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p175, [LastModificationTime] = @p176, [Price] = @p177 +WHERE [Id] = @p178 AND [ConcurrencyStamp] = @p179; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p180, [LastModificationTime] = @p181, [Price] = @p182 +WHERE [Id] = @p183 AND [ConcurrencyStamp] = @p184; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p185, [LastModificationTime] = @p186, [Price] = @p187 +WHERE [Id] = @p188 AND [ConcurrencyStamp] = @p189; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p190, [LastModificationTime] = @p191, [Price] = @p192 +WHERE [Id] = @p193 AND [ConcurrencyStamp] = @p194; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p195, [LastModificationTime] = @p196, [Price] = @p197 +WHERE [Id] = @p198 AND [ConcurrencyStamp] = @p199; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p200, [LastModificationTime] = @p201, [Price] = @p202 +WHERE [Id] = @p203 AND [ConcurrencyStamp] = @p204; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p205, [LastModificationTime] = @p206, [Price] = @p207 +WHERE [Id] = @p208 AND [ConcurrencyStamp] = @p209; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:34.470 G Executed DbCommand ("15"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 40), @p4='?' (Size = 40), @p1='?' (DbType = DateTime2), @p2='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p8='?' (DbType = Guid), @p5='?' (Size = 40), @p9='?' (Size = 40), @p6='?' (DbType = DateTime2), @p7='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p13='?' (DbType = Guid), @p10='?' (Size = 40), @p14='?' (Size = 40), @p11='?' (DbType = DateTime2), @p12='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p18='?' (DbType = Guid), @p15='?' (Size = 40), @p19='?' (Size = 40), @p16='?' (DbType = DateTime2), @p17='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p23='?' (DbType = Guid), @p20='?' (Size = 40), @p24='?' (Size = 40), @p21='?' (DbType = DateTime2), @p22='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p28='?' (DbType = Guid), @p25='?' (Size = 40), @p29='?' (Size = 40), @p26='?' (DbType = DateTime2), @p27='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p33='?' (DbType = Guid), @p30='?' (Size = 40), @p34='?' (Size = 40), @p31='?' (DbType = DateTime2), @p32='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p38='?' (DbType = Guid), @p35='?' (Size = 40), @p39='?' (Size = 40), @p36='?' (DbType = DateTime2), @p37='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p43='?' (DbType = Guid), @p40='?' (Size = 40), @p44='?' (Size = 40), @p41='?' (DbType = DateTime2), @p42='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p48='?' (DbType = Guid), @p45='?' (Size = 40), @p49='?' (Size = 40), @p46='?' (DbType = DateTime2), @p47='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p53='?' (DbType = Guid), @p50='?' (Size = 40), @p54='?' (Size = 40), @p51='?' (DbType = DateTime2), @p52='?' (Precision = 18) (Scale = 2) (DbType = Decimal), @p58='?' (DbType = Guid), @p55='?' (Size = 40), @p59='?' (Size = 40), @p56='?' (DbType = DateTime2), @p57='?' (Precision = 18) (Scale = 2) (DbType = Decimal)"], CommandType='Text', CommandTimeout='1800']" +""SET NOCOUNT ON; +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [Price] = @p2 +WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p5, [LastModificationTime] = @p6, [Price] = @p7 +WHERE [Id] = @p8 AND [ConcurrencyStamp] = @p9; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p10, [LastModificationTime] = @p11, [Price] = @p12 +WHERE [Id] = @p13 AND [ConcurrencyStamp] = @p14; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p15, [LastModificationTime] = @p16, [Price] = @p17 +WHERE [Id] = @p18 AND [ConcurrencyStamp] = @p19; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p20, [LastModificationTime] = @p21, [Price] = @p22 +WHERE [Id] = @p23 AND [ConcurrencyStamp] = @p24; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p25, [LastModificationTime] = @p26, [Price] = @p27 +WHERE [Id] = @p28 AND [ConcurrencyStamp] = @p29; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p30, [LastModificationTime] = @p31, [Price] = @p32 +WHERE [Id] = @p33 AND [ConcurrencyStamp] = @p34; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p35, [LastModificationTime] = @p36, [Price] = @p37 +WHERE [Id] = @p38 AND [ConcurrencyStamp] = @p39; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p40, [LastModificationTime] = @p41, [Price] = @p42 +WHERE [Id] = @p43 AND [ConcurrencyStamp] = @p44; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p45, [LastModificationTime] = @p46, [Price] = @p47 +WHERE [Id] = @p48 AND [ConcurrencyStamp] = @p49; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p50, [LastModificationTime] = @p51, [Price] = @p52 +WHERE [Id] = @p53 AND [ConcurrencyStamp] = @p54; +SELECT @@ROWCOUNT; + +UPDATE [Set_PriceList] SET [ConcurrencyStamp] = @p55, [LastModificationTime] = @p56, [Price] = @p57 +WHERE [Id] = @p58 AND [ConcurrencyStamp] = @p59; +SELECT @@ROWCOUNT;" +2021-11-03 14:13:34.645 G Executing "ObjectResult", writing value of type '"System.String"'. +2021-11-03 14:13:34.648 G Executed action "Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)" in 2396.5442ms +2021-11-03 14:13:34.650 G Executed endpoint '"Win.Sfs.SettleAccount.Entities.Prices.PriceListAppService.ImportAsync (SettleAccount.Application)"' +2021-11-03 14:13:34.653 G Entity Framework Core "5.0.8" initialized '"AbpAuditLoggingDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-11-03 14:13:34.663 G Executed DbCommand ("3"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 96), @p2='?' (Size = 512), @p3='?' (Size = 64), @p4='?' (Size = 64), @p5='?' (Size = 128), @p6='?' (Size = 256), @p7='?' (Size = 40), @p8='?' (Size = 64), @p9='?' (Size = 4000), @p10='?' (DbType = Int32), @p11='?' (DbType = DateTime2), @p12='?' (Size = 4000), @p13='?' (Size = 16), @p14='?' (DbType = Int32), @p15='?' (DbType = Guid), @p16='?' (DbType = Guid), @p17='?' (DbType = Guid), @p18='?' (Size = 4000), @p19='?' (Size = 256), @p20='?' (DbType = Guid), @p21='?' (Size = 256)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogs] ([Id], [ApplicationName], [BrowserInfo], [ClientId], [ClientIpAddress], [ClientName], [Comments], [ConcurrencyStamp], [CorrelationId], [Exceptions], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [HttpMethod], [HttpStatusCode], [ImpersonatorTenantId], [ImpersonatorUserId], [TenantId], [TenantName], [Url], [UserId], [UserName]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21);" +2021-11-03 14:13:34.667 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:13:34.670 G Executed DbCommand ("1"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?' (DbType = Int32), @p3='?' (DbType = DateTime2), @p4='?' (Size = 4000), @p5='?' (Size = 128), @p6='?' (Size = 2000), @p7='?' (Size = 256), @p8='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" +""SET NOCOUNT ON; +INSERT INTO [AbpAuditLogActions] ([Id], [AuditLogId], [ExecutionDuration], [ExecutionTime], [ExtraProperties], [MethodName], [Parameters], [ServiceName], [TenantId]) +VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8);" +2021-11-03 14:13:34.673 G Request finished HTTP/1.1 POST http://localhost:44378/api/SettleAccount/PriceList/ExcelImport-Map?version=202109 multipart/form-data;+boundary=----WebKitFormBoundarycstRnhL2103jdRBu 12097 - 200 - text/plain;+charset=utf-8 2439.6102ms diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.Designer.cs deleted file mode 100644 index 930b8087..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.Designer.cs +++ /dev/null @@ -1,8069 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210830073315_init")] - partial class init - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.cs deleted file mode 100644 index 7e2cf7ad..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073315_init.cs +++ /dev/null @@ -1,3505 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class init : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_bom", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ParentItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ParentItemDesc = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - ChildItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ChildItemDesc = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - ChildItemUom = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - OperateProcess = table.Column(type: "int", nullable: false), - ScrapPercent = table.Column(type: "decimal(18,2)", nullable: false), - BomType = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - EffectiveTime = table.Column(type: "datetime2", nullable: false), - ExpireTime = table.Column(type: "datetime2", nullable: false), - IssuePosition = table.Column(type: "nvarchar(max)", nullable: true), - BomLevel = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_bom_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bom_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_bt_not_kb_consign_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bt_not_kb_consign_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_bt_seq_kb_diff_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bt_seq_kb_diff_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarconsign", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - KBCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - State = table.Column(type: "int", maxLength: 36, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarconsign", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarconsign_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarconsign_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarkb", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - DateTime = table.Column(type: "datetime2", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - NeedQty = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - OrderKBCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ReceiveAreaCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ReceiveAreaName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeliveryDateTime = table.Column(type: "datetime2", nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", maxLength: 36, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarkb", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarkb_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - DateTime = table.Column(type: "datetime2", nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarkb_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseq", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - DT = table.Column(type: "datetime2", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - VIN = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - BarCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - OnLineDateTime = table.Column(type: "datetime2", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseq", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseq_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - DT = table.Column(type: "datetime2", nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseq_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseqfirst", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: true), - DT = table.Column(type: "datetime2", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: false), - BarCode = table.Column(type: "nvarchar(450)", nullable: true), - OnLineDateTime = table.Column(type: "datetime2", nullable: false), - VIN = table.Column(type: "nvarchar(450)", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseqfirst", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseqfirst_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - DT = table.Column(type: "datetime2", nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseqfirst_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseqsecond", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: true), - DateTime = table.Column(type: "datetime2", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: false), - PlanTypeRemark = table.Column(type: "nvarchar(max)", nullable: true), - Code = table.Column(type: "nvarchar(max)", nullable: true), - OnLineDateTime = table.Column(type: "datetime2", nullable: false), - VIN = table.Column(type: "nvarchar(450)", nullable: true), - EngineCode = table.Column(type: "nvarchar(max)", nullable: true), - BarCode = table.Column(type: "nvarchar(450)", nullable: true), - CarName = table.Column(type: "nvarchar(max)", nullable: true), - CMSerie = table.Column(type: "nvarchar(max)", nullable: true), - CMSerieRemark = table.Column(type: "nvarchar(max)", nullable: true), - CarType = table.Column(type: "nvarchar(max)", nullable: true), - Color = table.Column(type: "nvarchar(max)", nullable: true), - TopSeq = table.Column(type: "nvarchar(max)", nullable: true), - InColor = table.Column(type: "nvarchar(max)", nullable: true), - CarModelShort = table.Column(type: "nvarchar(max)", nullable: true), - OrderStateNum = table.Column(type: "nvarchar(max)", nullable: true), - StateName = table.Column(type: "nvarchar(max)", nullable: true), - SpecialCarTypeRemark = table.Column(type: "nvarchar(max)", nullable: true), - PlanDate = table.Column(type: "datetime2", nullable: false), - PlanSeq = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseqsecond", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_btcarseqsecond_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - DateTime = table.Column(type: "datetime2", nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_btcarseqsecond_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_carmaterialconfig", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CarCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_carmaterialconfig", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_code", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Project = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Value = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Description = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_code", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_control", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(max)", nullable: true), - State = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_control", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_customer", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Description = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - Address = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - Contact = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ContactPhone = table.Column(type: "nvarchar(max)", nullable: true), - ContactEmail = table.Column(type: "nvarchar(max)", nullable: true), - ContactFax = table.Column(type: "nvarchar(max)", nullable: true), - TaxRate = table.Column(type: "decimal(18,2)", nullable: true), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: false), - CustomerType = table.Column(type: "int", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_customer", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_customer_bom", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ParentItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ChildItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - EffectiveTime = table.Column(type: "datetime2", nullable: false), - FailureTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_customer_bom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_customerlocation", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerDesc = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Storagelocation = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - State = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_customerlocation", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_estdetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - MaterialDocument = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDocumentLine = table.Column(type: "nvarchar(450)", nullable: true), - BillNumber = table.Column(type: "nvarchar(max)", nullable: true), - PostingDate = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveQty = table.Column(type: "decimal(18,2)", nullable: false), - InvoiceQty = table.Column(type: "decimal(18,2)", nullable: false), - SupplierCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SupplierDesc = table.Column(type: "nvarchar(max)", nullable: true), - PurchaseDocument = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - PurchaseLine = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Source = table.Column(type: "nvarchar(max)", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - StorageLocation = table.Column(type: "nvarchar(max)", nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estdetail", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_estimate_stock_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estimate_stock_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_estinventory_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estinventory_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_estsum", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Postingperiod = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - SupplierCode = table.Column(type: "nvarchar(max)", nullable: true), - SupplierDesc = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - PurchaseDocument = table.Column(type: "nvarchar(max)", nullable: true), - PurchaseLine = table.Column(type: "nvarchar(max)", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estsum", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_estsum_verion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estsum_verion", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_factory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(max)", nullable: true), - Code = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Desc = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_factory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_fis", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - FISYear = table.Column(type: "nvarchar(max)", nullable: true), - OrderBillNum = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - KENNCode = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Model = table.Column(type: "nvarchar(450)", nullable: true), - Extend1 = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - CP5Time = table.Column(type: "datetime2", nullable: false), - SequenceNumber = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber2 = table.Column(type: "nvarchar(450)", nullable: true), - CP7Time = table.Column(type: "datetime2", nullable: false), - SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_fis", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_fis_extend", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - FISYear = table.Column(type: "nvarchar(max)", nullable: true), - OrderBillNum = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - KENNCode = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Model = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Extend1 = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - CP5Time = table.Column(type: "datetime2", nullable: false), - SequenceNumber = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber2 = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CP7Time = table.Column(type: "datetime2", nullable: false), - SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_fis_extend", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_fis_th", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - OrderBillNum = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ErpMaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Model = table.Column(type: "nvarchar(450)", nullable: true), - KENNCode = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ChassisNumber2 = table.Column(type: "nvarchar(450)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - CP5Time = table.Column(type: "datetime2", nullable: false), - CP7Time = table.Column(type: "datetime2", nullable: false), - SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - SequenceNumber = table.Column(type: "nvarchar(max)", nullable: true), - State = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Extend1 = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_fis_th", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_fis_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - Model = table.Column(type: "nvarchar(max)", nullable: true), - BeginDate = table.Column(type: "datetime2", nullable: false), - EndDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_fis_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqcon", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - VIN = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqcon", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqcon_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqcon_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqkb", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - NeedQty = table.Column(type: "decimal(18,2)", nullable: false), - KBCode = table.Column(type: "nvarchar(max)", nullable: true), - VIN = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqkb", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqkb_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqkb_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqspcon", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - KBCode = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - KBCodeExtend = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqspcon", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqspcon_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqspcon_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqspkb", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true), - NeedQty = table.Column(type: "decimal(18,2)", nullable: false), - KBCode = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - CreateTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqspkb", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_hqspkb_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_hqspkb_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_importmap", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ProjectName = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - OldColumnName = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - NewColumnName = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - IsCheck = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_importmap", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_inventory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - AppraisalDesc = table.Column(type: "nvarchar(max)", nullable: true), - StorageLocationDesc = table.Column(type: "nvarchar(max)", nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - InputQty = table.Column(type: "decimal(18,2)", nullable: false), - OutputQty = table.Column(type: "decimal(18,2)", nullable: false), - OpeningInventoryQty = table.Column(type: "decimal(18,2)", nullable: false), - EndingInventoryQty = table.Column(type: "decimal(18,2)", nullable: false), - AppraisalCategory = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - StorageLocation = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Unit = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_inventory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_inventory_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(450)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_inventory_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_Invoice", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TextCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InputDate = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Amt = table.Column(type: "decimal(18,2)", nullable: false), - Number = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Accounting = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AccountDate = table.Column(type: "datetime2", maxLength: 50, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_Invoice", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_InvoiceSettledDiff", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - InvoiceQty = table.Column(type: "decimal(18,2)", nullable: false), - SettleQty = table.Column(type: "decimal(18,2)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_InvoiceSettledDiff", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_InvoiceSettledDiffVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreatorName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProjectName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_InvoiceSettledDiffVersion", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_InvoiceVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_InvoiceVersion", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_jf_not_kb_consign_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jf_not_kb_consign_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_jfcarconsign", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - PABillNum = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - State = table.Column(type: "int", maxLength: 36, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jfcarconsign", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_jfcarconsign_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jfcarconsign_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_jfcarkb", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: false), - BillNum = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - OnLineDateTime = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - InStockQty = table.Column(type: "decimal(18,2)", precision: 18, scale: 2, nullable: false), - State = table.Column(type: "int", maxLength: 36, nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jfcarkb", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_jfcarkb_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jfcarkb_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_material", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - Unit = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - EstimateType = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - EstimateTypeDesc = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_material", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_prebatch", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - KENNCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - State = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_prebatch", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PriceList", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(max)", nullable: true), - BeginDate = table.Column(type: "datetime2", nullable: false), - EndDate = table.Column(type: "datetime2", nullable: false), - Price = table.Column(type: "decimal(18,2)", nullable: false), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Type = table.Column(type: "int", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PriceList", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PriceListVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_PriceListVersion", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_relationship", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ErpMaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - MaterialProperty = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SettleMaterialCode = table.Column(type: "nvarchar(max)", nullable: true), - ShipMaterailCode = table.Column(type: "nvarchar(max)", nullable: true), - AppraisalCategory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_relationship", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_act_adjustment_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_act_adjustment_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_act_diff_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_act_diff_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_adj", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - CustomerMaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerComponentCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SupplierCode = table.Column(type: "nvarchar(450)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Amt = table.Column(type: "decimal(18,2)", nullable: false), - Total = table.Column(type: "decimal(18,2)", nullable: false), - HasChanged = table.Column(type: "nvarchar(max)", nullable: true), - Buyer = table.Column(type: "nvarchar(max)", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_adj", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_adj_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(450)", nullable: true), - CustomerCode = table.Column(type: "nvarchar(max)", nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_adj_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_dis", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - SupplierCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - Amt = table.Column(type: "decimal(18,2)", nullable: false), - Total = table.Column(type: "decimal(18,2)", nullable: false), - HasChanged = table.Column(type: "nvarchar(max)", nullable: true), - Buyer = table.Column(type: "nvarchar(max)", nullable: true), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_dis", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_dis_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(max)", nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_dis_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_ratio", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(450)", nullable: true), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomItemPrice = table.Column(type: "decimal(18,2)", nullable: false), - CustomSubItemCode = table.Column(type: "nvarchar(450)", nullable: true), - CustomSubItemPrice = table.Column(type: "decimal(18,2)", nullable: false), - SupplierCode = table.Column(type: "nvarchar(450)", nullable: true), - SupplierDesc = table.Column(type: "nvarchar(max)", nullable: true), - SupplyProportion = table.Column(type: "nvarchar(max)", nullable: true), - SupplyProportionPrice = table.Column(type: "decimal(18,2)", nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_ratio", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_ratio_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: false), - Period = table.Column(type: "nvarchar(max)", nullable: false), - Version = table.Column(type: "nvarchar(450)", nullable: true), - CustomerCode = table.Column(type: "nvarchar(max)", nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_ratio_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_send_unsettled_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - BeginVersion = table.Column(type: "nvarchar(max)", nullable: true), - EndVersion = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_send_unsettled_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_send_unsettled_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - OrderBillNum = table.Column(type: "nvarchar(max)", nullable: true), - KENNCode = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - Model = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - CP5Time = table.Column(type: "datetime2", nullable: false), - FISYear = table.Column(type: "nvarchar(max)", nullable: true), - Extend1 = table.Column(type: "nvarchar(max)", nullable: true), - SequenceNumber = table.Column(type: "nvarchar(max)", nullable: true), - ChassisNumber = table.Column(type: "nvarchar(450)", nullable: true), - ChassisNumber2 = table.Column(type: "nvarchar(max)", nullable: true), - SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - Status = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_send_unsettled_report_detail", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_settle", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - SettleYear = table.Column(type: "nvarchar(max)", nullable: true), - KENNCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ChassisNumber = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Model = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CP5A = table.Column(type: "datetime2", nullable: false), - CP7 = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - SettlementID = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SettlementSupplier = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - state = table.Column(type: "int", nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_settle", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_fis_diff_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_fis_diff_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_settled_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_settled_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_unsettled_report", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DocumentType = table.Column(type: "int", nullable: false), - DocumentStatus = table.Column(type: "int", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomName = table.Column(type: "nvarchar(max)", nullable: true), - CreatorName = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_unsettled_report", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_supplier_item_setup", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ErpItemCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerSupplierCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ErpSupplierCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(450)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_supplier_item_setup", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_TaskJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Type = table.Column(type: "nvarchar(max)", nullable: true), - State = table.Column(type: "nvarchar(max)", nullable: true), - TaskId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Name = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ActionName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Error = table.Column(type: "nvarchar(max)", nullable: true), - Creator = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Email = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FileName = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - RealFileName = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - RealDownFileName = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - DownFileName = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true), - ServiceName = table.Column(type: "nvarchar(300)", maxLength: 300, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_TaskJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_unsettle", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - SettleYear = table.Column(type: "nvarchar(max)", nullable: true), - KENNCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ChassisNumber = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Model = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CP5A = table.Column(type: "datetime2", nullable: false), - CP7 = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - SettlementID = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SettlementSupplier = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ParentId = table.Column(type: "uniqueidentifier", nullable: false), - state = table.Column(type: "int", nullable: false), - UnsettledReason = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_unsettle", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_unsettle_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_unsettle_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_bt_not_kb_consign_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomCode = table.Column(type: "nvarchar(450)", nullable: true), - OrderKBCode = table.Column(type: "nvarchar(450)", nullable: true), - MaterialCode = table.Column(type: "nvarchar(450)", nullable: true), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - NeedQty = table.Column(type: "decimal(18,2)", nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - DeliveryDateTime = table.Column(type: "datetime2", nullable: false), - State = table.Column(type: "int", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bt_not_kb_consign_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_bt_not_kb_consign_report_detail_Set_bt_not_kb_consign_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_bt_not_kb_consign_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_bt_seq_kb_diff_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomCode = table.Column(type: "nvarchar(450)", nullable: true), - DT = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - SeqQty = table.Column(type: "decimal(18,2)", nullable: false), - KBQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_bt_seq_kb_diff_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_bt_seq_kb_diff_report_detail_Set_bt_seq_kb_diff_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_bt_seq_kb_diff_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_estimate_stock_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - EstimationType = table.Column(type: "nvarchar(max)", nullable: true), - EstimationTypeDesc = table.Column(type: "nvarchar(max)", nullable: true), - EstimationQty = table.Column(type: "decimal(18,2)", nullable: false), - StockQty = table.Column(type: "decimal(18,2)", nullable: false), - FgQty = table.Column(type: "decimal(18,2)", nullable: false), - UnSettledQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_estimate_stock_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_estimate_stock_report_detail_Set_estimate_stock_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_estimate_stock_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_jf_not_kb_consign_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomCode = table.Column(type: "nvarchar(450)", nullable: true), - BillNum = table.Column(type: "nvarchar(450)", nullable: true), - OnLineDateTime = table.Column(type: "datetime2", nullable: false), - MaterialCode = table.Column(type: "nvarchar(450)", nullable: true), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - InStockQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - ConsignQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_jf_not_kb_consign_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_jf_not_kb_consign_report_detail_Set_jf_not_kb_consign_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_jf_not_kb_consign_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_act_adjustment_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CustomItemCode = table.Column(type: "nvarchar(450)", nullable: true), - CustomItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - OfflineQty = table.Column(type: "decimal(18,2)", nullable: false), - CustomSubItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ErpSubItemCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomSubItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - ErpSubItemQty = table.Column(type: "decimal(18,2)", nullable: false), - ErpSubItemActualQty = table.Column(type: "decimal(18,2)", nullable: false), - SupplierCode = table.Column(type: "nvarchar(450)", nullable: true), - SupplierDesc = table.Column(type: "nvarchar(max)", nullable: true), - SupplyProportion = table.Column(type: "nvarchar(max)", nullable: true), - CustomSubItemPrice = table.Column(type: "decimal(18,2)", nullable: false), - CustomSubItemSumQty = table.Column(type: "decimal(18,2)", nullable: false), - SumPriceNoTax = table.Column(type: "decimal(18,2)", nullable: false), - SumPriceWithTax = table.Column(type: "decimal(18,2)", nullable: false), - HasChanged = table.Column(type: "nvarchar(max)", nullable: true), - Buyer = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_act_adjustment_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_sec_act_adjustment_report_detail_Set_sec_act_adjustment_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_sec_act_adjustment_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_sec_act_diff_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomItemCode = table.Column(type: "nvarchar(450)", nullable: true), - CustomItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - CustomSubItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ErpSubItemCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomSubItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - SupplierCode = table.Column(type: "nvarchar(450)", nullable: true), - SupplierDesc = table.Column(type: "nvarchar(max)", nullable: true), - StaPaymentPartyQty = table.Column(type: "decimal(18,2)", nullable: false), - ActPaymentPartyQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - StdNoTaxAmount = table.Column(type: "decimal(18,2)", nullable: false), - ActNoTaxAmount = table.Column(type: "decimal(18,2)", nullable: false), - DiffAmount = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(450)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_sec_act_diff_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_sec_act_diff_report_detail_Set_sec_act_diff_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_sec_act_diff_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_fis_diff_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - EstimationType = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - FisQty = table.Column(type: "decimal(18,2)", nullable: false), - StockQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_fis_diff_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_stock_fis_diff_report_detail_Set_stock_fis_diff_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_stock_fis_diff_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_settled_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - EstimationType = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - R3SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - StockQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_settled_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_stock_settled_report_detail_Set_stock_settled_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_stock_settled_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "Set_stock_unsettled_report_detail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - ItemDesc = table.Column(type: "nvarchar(max)", nullable: true), - CustomCode = table.Column(type: "nvarchar(max)", nullable: true), - EstimationType = table.Column(type: "nvarchar(max)", nullable: true), - FisUnSettledQty = table.Column(type: "decimal(18,2)", nullable: false), - StockQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", maxLength: 36, nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - Period = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - DocumentId = table.Column(type: "uniqueidentifier", nullable: false), - DocumentNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_stock_unsettled_report_detail", x => x.Id); - table.ForeignKey( - name: "FK_Set_stock_unsettled_report_detail_Set_stock_unsettled_report_DocumentId", - column: x => x.DocumentId, - principalTable: "Set_stock_unsettled_report", - principalColumn: "Id"); - }); - - migrationBuilder.CreateTable( - name: "UpstreamDocument", - columns: table => new - { - UpstreamDocumentId = table.Column(type: "uniqueidentifier", nullable: false), - UpstreamDocumentNumber = table.Column(type: "nvarchar(max)", nullable: true), - UpstreamDocumentType = table.Column(type: "int", nullable: false), - Seq = table.Column(type: "int", nullable: false), - BTNotConsignReportId = table.Column(type: "uniqueidentifier", nullable: true), - BTSeqKBDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - EstimatedStockDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - JFNotConsignReportId = table.Column(type: "uniqueidentifier", nullable: true), - SecondaryActuralAdjustmentReportId = table.Column(type: "uniqueidentifier", nullable: true), - SecondaryActuralDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - SendUnsettledDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - StockFisDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - StockSettledDiffReportId = table.Column(type: "uniqueidentifier", nullable: true), - StockUnsettledDiffReportId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_UpstreamDocument", x => x.UpstreamDocumentId); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_bt_not_kb_consign_report_BTNotConsignReportId", - column: x => x.BTNotConsignReportId, - principalTable: "Set_bt_not_kb_consign_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_bt_seq_kb_diff_report_BTSeqKBDiffReportId", - column: x => x.BTSeqKBDiffReportId, - principalTable: "Set_bt_seq_kb_diff_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_estimate_stock_report_EstimatedStockDiffReportId", - column: x => x.EstimatedStockDiffReportId, - principalTable: "Set_estimate_stock_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_jf_not_kb_consign_report_JFNotConsignReportId", - column: x => x.JFNotConsignReportId, - principalTable: "Set_jf_not_kb_consign_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_sec_act_adjustment_report_SecondaryActuralAdjustmentReportId", - column: x => x.SecondaryActuralAdjustmentReportId, - principalTable: "Set_sec_act_adjustment_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_sec_act_diff_report_SecondaryActuralDiffReportId", - column: x => x.SecondaryActuralDiffReportId, - principalTable: "Set_sec_act_diff_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_send_unsettled_report_SendUnsettledDiffReportId", - column: x => x.SendUnsettledDiffReportId, - principalTable: "Set_send_unsettled_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_stock_fis_diff_report_StockFisDiffReportId", - column: x => x.StockFisDiffReportId, - principalTable: "Set_stock_fis_diff_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_stock_settled_report_StockSettledDiffReportId", - column: x => x.StockSettledDiffReportId, - principalTable: "Set_stock_settled_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_UpstreamDocument_Set_stock_unsettled_report_StockUnsettledDiffReportId", - column: x => x.StockUnsettledDiffReportId, - principalTable: "Set_stock_unsettled_report", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_bom_ParentItemCode_ChildItemCode_Version", - table: "Set_bom", - columns: new[] { "ParentItemCode", "ChildItemCode", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_not_kb_consign_report_BranchId_DocumentNumber", - table: "Set_bt_not_kb_consign_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_not_kb_consign_report_detail_BranchId_DocumentId_Version_CustomCode_MaterialCode_OrderKBCode", - table: "Set_bt_not_kb_consign_report_detail", - columns: new[] { "BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_not_kb_consign_report_detail_DocumentId", - table: "Set_bt_not_kb_consign_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_seq_kb_diff_report_BranchId_DocumentNumber", - table: "Set_bt_seq_kb_diff_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_seq_kb_diff_report_detail_BranchId_DocumentId_Version_DT_CustomCode_MaterialCode", - table: "Set_bt_seq_kb_diff_report_detail", - columns: new[] { "BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_bt_seq_kb_diff_report_detail_DocumentId", - table: "Set_bt_seq_kb_diff_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_btcarconsign_CustomerCode_MaterialCode_KBCode_Version", - table: "Set_btcarconsign", - columns: new[] { "CustomerCode", "MaterialCode", "KBCode", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_btcarkb_CustomerCode_MaterialCode_OrderKBCode_Version", - table: "Set_btcarkb", - columns: new[] { "CustomerCode", "MaterialCode", "OrderKBCode", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_btcarseq_CustomerCode_BarCode_VIN_Version", - table: "Set_btcarseq", - columns: new[] { "CustomerCode", "BarCode", "VIN", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_btcarseqfirst_CustomerCode_BarCode_VIN_Version", - table: "Set_btcarseqfirst", - columns: new[] { "CustomerCode", "BarCode", "VIN", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_btcarseqsecond_CustomerCode_BarCode_VIN_Version", - table: "Set_btcarseqsecond", - columns: new[] { "CustomerCode", "BarCode", "VIN", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_carmaterialconfig_CarCode_MaterialCode", - table: "Set_carmaterialconfig", - columns: new[] { "CarCode", "MaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_code_Project_Value", - table: "Set_code", - columns: new[] { "Project", "Value" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_control_Year_Period", - table: "Set_control", - columns: new[] { "Year", "Period" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_customer_BranchId_Code", - table: "Set_customer", - columns: new[] { "BranchId", "Code" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_customer_bom_BranchId_CustomerCode_ParentItemCode_ChildItemCode", - table: "Set_customer_bom", - columns: new[] { "BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_customerlocation_Storagelocation_CustomerCode", - table: "Set_customerlocation", - columns: new[] { "Storagelocation", "CustomerCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_estdetail_MaterialDocument_MaterialDocumentLine_MaterialCode_Version", - table: "Set_estdetail", - columns: new[] { "MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version" }, - unique: true, - filter: "[MaterialDocumentLine] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Set_estimate_stock_report_BranchId_DocumentNumber", - table: "Set_estimate_stock_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_estimate_stock_report_detail_BranchId_DocumentId_ItemCode", - table: "Set_estimate_stock_report_detail", - columns: new[] { "BranchId", "DocumentId", "ItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_estimate_stock_report_detail_DocumentId", - table: "Set_estimate_stock_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_factory_Code", - table: "Set_factory", - column: "Code", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis", - columns: new[] { "ChassisNumber2", "Version", "Model", "ItemCode" }, - unique: true, - filter: "[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_extend_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis_extend", - columns: new[] { "ChassisNumber2", "Version", "Model", "ItemCode" }, - unique: true, - filter: "[Model] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_th_ChassisNumber2_Version_Model_MaterialCode", - table: "Set_fis_th", - columns: new[] { "ChassisNumber2", "Version", "Model", "MaterialCode" }, - unique: true, - filter: "[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Set_hqcon_CustomerCode_MaterialCode_VIN_Version", - table: "Set_hqcon", - columns: new[] { "CustomerCode", "MaterialCode", "VIN", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_hqkb_CustomerCode_MaterialCode_VIN_Version", - table: "Set_hqkb", - columns: new[] { "CustomerCode", "MaterialCode", "VIN", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_hqspcon_CustomerCode_MaterialCode_KBCode_KBCodeExtend_Version", - table: "Set_hqspcon", - columns: new[] { "CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_hqspkb_CustomerCode_MaterialCode_KBCode_Version", - table: "Set_hqspkb", - columns: new[] { "CustomerCode", "MaterialCode", "KBCode", "Version" }, - unique: true, - filter: "[MaterialCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Set_inventory_Version_MaterialCode_StorageLocation", - table: "Set_inventory", - columns: new[] { "Version", "MaterialCode", "StorageLocation" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_inventory_version_Version_Factory", - table: "Set_inventory_version", - columns: new[] { "Version", "Factory" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_jf_not_kb_consign_report_BranchId_DocumentNumber", - table: "Set_jf_not_kb_consign_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_jf_not_kb_consign_report_detail_DocumentId_Version_CustomCode_MaterialCode_BillNum", - table: "Set_jf_not_kb_consign_report_detail", - columns: new[] { "DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_jfcarconsign_CustomerCode_MaterialCode_PABillNum_Version", - table: "Set_jfcarconsign", - columns: new[] { "CustomerCode", "MaterialCode", "PABillNum", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_jfcarkb_CustomerCode_MaterialCode_BillNum_Version", - table: "Set_jfcarkb", - columns: new[] { "CustomerCode", "MaterialCode", "BillNum", "Version" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_material_MaterialCode", - table: "Set_material", - column: "MaterialCode", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_prebatch_KENNCode_State", - table: "Set_prebatch", - columns: new[] { "KENNCode", "State" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_relationship_ErpMaterialCode", - table: "Set_relationship", - column: "ErpMaterialCode", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_adjustment_report_BranchId_DocumentNumber", - table: "Set_sec_act_adjustment_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_adjustment_report_detail_BranchId_DocumentId_Version_CustomItemCode_CustomSubItemCode_SupplierCode", - table: "Set_sec_act_adjustment_report_detail", - columns: new[] { "BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_adjustment_report_detail_DocumentId", - table: "Set_sec_act_adjustment_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_diff_report_BranchId_DocumentNumber", - table: "Set_sec_act_diff_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_diff_report_detail_BranchId_DocumentId_Version_CustomItemCode_CustomSubItemCode_SupplierCode", - table: "Set_sec_act_diff_report_detail", - columns: new[] { "BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_act_diff_report_detail_DocumentId", - table: "Set_sec_act_diff_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_adj_Version_CustomerComponentCode_CustomerMaterialCode_SupplierCode", - table: "Set_sec_adj", - columns: new[] { "Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_adj_version_Version", - table: "Set_sec_adj_version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_dis_SupplierCode", - table: "Set_sec_dis", - column: "SupplierCode", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_dis_version_Version", - table: "Set_sec_dis_version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_ratio_Version_CustomItemCode_CustomSubItemCode_SupplierCode", - table: "Set_sec_ratio", - columns: new[] { "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_sec_ratio_version_Version", - table: "Set_sec_ratio_version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_send_unsettled_report_BranchId_DocumentNumber", - table: "Set_send_unsettled_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_send_unsettled_report_detail_BranchId_DocumentId_Version_ChassisNumber_ItemCode", - table: "Set_send_unsettled_report_detail", - columns: new[] { "BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_settle_state", - table: "Set_settle", - column: "state"); - - migrationBuilder.CreateIndex( - name: "IX_Set_settle_Version_ChassisNumber_MaterialCode", - table: "Set_settle", - columns: new[] { "Version", "ChassisNumber", "MaterialCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_fis_diff_report_BranchId_DocumentNumber", - table: "Set_stock_fis_diff_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_fis_diff_report_detail_BranchId_DocumentId_ItemCode", - table: "Set_stock_fis_diff_report_detail", - columns: new[] { "BranchId", "DocumentId", "ItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_fis_diff_report_detail_DocumentId", - table: "Set_stock_fis_diff_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_settled_report_BranchId_DocumentNumber", - table: "Set_stock_settled_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_settled_report_detail_BranchId_DocumentId_ItemCode", - table: "Set_stock_settled_report_detail", - columns: new[] { "BranchId", "DocumentId", "ItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_settled_report_detail_DocumentId", - table: "Set_stock_settled_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_unsettled_report_BranchId_DocumentNumber", - table: "Set_stock_unsettled_report", - columns: new[] { "BranchId", "DocumentNumber" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_unsettled_report_detail_BranchId_DocumentId_ItemCode", - table: "Set_stock_unsettled_report_detail", - columns: new[] { "BranchId", "DocumentId", "ItemCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_stock_unsettled_report_detail_DocumentId", - table: "Set_stock_unsettled_report_detail", - column: "DocumentId"); - - migrationBuilder.CreateIndex( - name: "IX_Set_supplier_item_setup_ErpSupplierCode_ErpItemCode_CustomerSupplierCode_CustomerCode", - table: "Set_supplier_item_setup", - columns: new[] { "ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_unsettle_state", - table: "Set_unsettle", - column: "state"); - - migrationBuilder.CreateIndex( - name: "IX_Set_unsettle_Version_ChassisNumber_MaterialCode", - table: "Set_unsettle", - columns: new[] { "Version", "ChassisNumber", "MaterialCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Set_unsettle_version_Version", - table: "Set_unsettle_version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_BTNotConsignReportId", - table: "UpstreamDocument", - column: "BTNotConsignReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_BTSeqKBDiffReportId", - table: "UpstreamDocument", - column: "BTSeqKBDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_EstimatedStockDiffReportId", - table: "UpstreamDocument", - column: "EstimatedStockDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_JFNotConsignReportId", - table: "UpstreamDocument", - column: "JFNotConsignReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_SecondaryActuralAdjustmentReportId", - table: "UpstreamDocument", - column: "SecondaryActuralAdjustmentReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_SecondaryActuralDiffReportId", - table: "UpstreamDocument", - column: "SecondaryActuralDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_SendUnsettledDiffReportId", - table: "UpstreamDocument", - column: "SendUnsettledDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_StockFisDiffReportId", - table: "UpstreamDocument", - column: "StockFisDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_StockSettledDiffReportId", - table: "UpstreamDocument", - column: "StockSettledDiffReportId"); - - migrationBuilder.CreateIndex( - name: "IX_UpstreamDocument_StockUnsettledDiffReportId", - table: "UpstreamDocument", - column: "StockUnsettledDiffReportId"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_bom"); - - migrationBuilder.DropTable( - name: "Set_bom_version"); - - migrationBuilder.DropTable( - name: "Set_bt_not_kb_consign_report_detail"); - - migrationBuilder.DropTable( - name: "Set_bt_seq_kb_diff_report_detail"); - - migrationBuilder.DropTable( - name: "Set_btcarconsign"); - - migrationBuilder.DropTable( - name: "Set_btcarconsign_version"); - - migrationBuilder.DropTable( - name: "Set_btcarkb"); - - migrationBuilder.DropTable( - name: "Set_btcarkb_version"); - - migrationBuilder.DropTable( - name: "Set_btcarseq"); - - migrationBuilder.DropTable( - name: "Set_btcarseq_version"); - - migrationBuilder.DropTable( - name: "Set_btcarseqfirst"); - - migrationBuilder.DropTable( - name: "Set_btcarseqfirst_version"); - - migrationBuilder.DropTable( - name: "Set_btcarseqsecond"); - - migrationBuilder.DropTable( - name: "Set_btcarseqsecond_version"); - - migrationBuilder.DropTable( - name: "Set_carmaterialconfig"); - - migrationBuilder.DropTable( - name: "Set_code"); - - migrationBuilder.DropTable( - name: "Set_control"); - - migrationBuilder.DropTable( - name: "Set_customer"); - - migrationBuilder.DropTable( - name: "Set_customer_bom"); - - migrationBuilder.DropTable( - name: "Set_customerlocation"); - - migrationBuilder.DropTable( - name: "Set_estdetail"); - - migrationBuilder.DropTable( - name: "Set_estimate_stock_report_detail"); - - migrationBuilder.DropTable( - name: "Set_estinventory_version"); - - migrationBuilder.DropTable( - name: "Set_estsum"); - - migrationBuilder.DropTable( - name: "Set_estsum_verion"); - - migrationBuilder.DropTable( - name: "Set_factory"); - - migrationBuilder.DropTable( - name: "Set_fis"); - - migrationBuilder.DropTable( - name: "Set_fis_extend"); - - migrationBuilder.DropTable( - name: "Set_fis_th"); - - migrationBuilder.DropTable( - name: "Set_fis_version"); - - migrationBuilder.DropTable( - name: "Set_hqcon"); - - migrationBuilder.DropTable( - name: "Set_hqcon_version"); - - migrationBuilder.DropTable( - name: "Set_hqkb"); - - migrationBuilder.DropTable( - name: "Set_hqkb_version"); - - migrationBuilder.DropTable( - name: "Set_hqspcon"); - - migrationBuilder.DropTable( - name: "Set_hqspcon_version"); - - migrationBuilder.DropTable( - name: "Set_hqspkb"); - - migrationBuilder.DropTable( - name: "Set_hqspkb_version"); - - migrationBuilder.DropTable( - name: "Set_importmap"); - - migrationBuilder.DropTable( - name: "Set_inventory"); - - migrationBuilder.DropTable( - name: "Set_inventory_version"); - - migrationBuilder.DropTable( - name: "Set_Invoice"); - - migrationBuilder.DropTable( - name: "Set_InvoiceSettledDiff"); - - migrationBuilder.DropTable( - name: "Set_InvoiceSettledDiffVersion"); - - migrationBuilder.DropTable( - name: "Set_InvoiceVersion"); - - migrationBuilder.DropTable( - name: "Set_jf_not_kb_consign_report_detail"); - - migrationBuilder.DropTable( - name: "Set_jfcarconsign"); - - migrationBuilder.DropTable( - name: "Set_jfcarconsign_version"); - - migrationBuilder.DropTable( - name: "Set_jfcarkb"); - - migrationBuilder.DropTable( - name: "Set_jfcarkb_version"); - - migrationBuilder.DropTable( - name: "Set_material"); - - migrationBuilder.DropTable( - name: "Set_prebatch"); - - migrationBuilder.DropTable( - name: "Set_PriceList"); - - migrationBuilder.DropTable( - name: "Set_PriceListVersion"); - - migrationBuilder.DropTable( - name: "Set_relationship"); - - migrationBuilder.DropTable( - name: "Set_sec_act_adjustment_report_detail"); - - migrationBuilder.DropTable( - name: "Set_sec_act_diff_report_detail"); - - migrationBuilder.DropTable( - name: "Set_sec_adj"); - - migrationBuilder.DropTable( - name: "Set_sec_adj_version"); - - migrationBuilder.DropTable( - name: "Set_sec_dis"); - - migrationBuilder.DropTable( - name: "Set_sec_dis_version"); - - migrationBuilder.DropTable( - name: "Set_sec_ratio"); - - migrationBuilder.DropTable( - name: "Set_sec_ratio_version"); - - migrationBuilder.DropTable( - name: "Set_send_unsettled_report_detail"); - - migrationBuilder.DropTable( - name: "Set_settle"); - - migrationBuilder.DropTable( - name: "Set_stock_fis_diff_report_detail"); - - migrationBuilder.DropTable( - name: "Set_stock_settled_report_detail"); - - migrationBuilder.DropTable( - name: "Set_stock_unsettled_report_detail"); - - migrationBuilder.DropTable( - name: "Set_supplier_item_setup"); - - migrationBuilder.DropTable( - name: "Set_TaskJob"); - - migrationBuilder.DropTable( - name: "Set_unsettle"); - - migrationBuilder.DropTable( - name: "Set_unsettle_version"); - - migrationBuilder.DropTable( - name: "UpstreamDocument"); - - migrationBuilder.DropTable( - name: "Set_bt_not_kb_consign_report"); - - migrationBuilder.DropTable( - name: "Set_bt_seq_kb_diff_report"); - - migrationBuilder.DropTable( - name: "Set_estimate_stock_report"); - - migrationBuilder.DropTable( - name: "Set_jf_not_kb_consign_report"); - - migrationBuilder.DropTable( - name: "Set_sec_act_adjustment_report"); - - migrationBuilder.DropTable( - name: "Set_sec_act_diff_report"); - - migrationBuilder.DropTable( - name: "Set_send_unsettled_report"); - - migrationBuilder.DropTable( - name: "Set_stock_fis_diff_report"); - - migrationBuilder.DropTable( - name: "Set_stock_settled_report"); - - migrationBuilder.DropTable( - name: "Set_stock_unsettled_report"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.Designer.cs deleted file mode 100644 index cc4ad7e4..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.Designer.cs +++ /dev/null @@ -1,8246 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210830073634_202108300001")] - partial class _202108300001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.cs deleted file mode 100644 index 8521bc26..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210830073634_202108300001.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202108300001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_MaterialRelationshipDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ErpMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialProperty = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ShipMaterailCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - AppraisalCategory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_MaterialRelationshipDetail", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_MaterialRelationshipVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_MaterialRelationshipVersion", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_MaterialRelationshipDetail"); - - migrationBuilder.DropTable( - name: "Set_MaterialRelationshipVersion"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.Designer.cs deleted file mode 100644 index e7133470..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.Designer.cs +++ /dev/null @@ -1,8434 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210901012406_201209010001")] - partial class _201209010001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.cs deleted file mode 100644 index dfd69f1e..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901012406_201209010001.cs +++ /dev/null @@ -1,95 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _201209010001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_settle_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_settle_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_settlement_part", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - CustomerCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Model = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - SettlementPartCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - SettlementPartDesc = table.Column(type: "nvarchar(2048)", maxLength: 2048, nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_settlement_part", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_settle_version_Version", - table: "Set_settle_version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_settlement_part_Period_CustomerCode_Version_SettlementPartCode", - table: "Set_settlement_part", - columns: new[] { "Period", "CustomerCode", "Version", "SettlementPartCode" }, - unique: true, - filter: "IsDeleted=0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_settle_version"); - - migrationBuilder.DropTable( - name: "Set_settlement_part"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.Designer.cs deleted file mode 100644 index 5397156b..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.Designer.cs +++ /dev/null @@ -1,8434 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210901030011_202109010002")] - partial class _202109010002 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.cs deleted file mode 100644 index b33c9c03..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210901030011_202109010002.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202109010002 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropPrimaryKey( - name: "PK_Set_InvoiceVersion", - table: "Set_InvoiceVersion"); - - migrationBuilder.RenameTable( - name: "Set_InvoiceVersion", - newName: "Set_settlement_part_version"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Set_settlement_part_version", - table: "Set_settlement_part_version", - column: "Id"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropPrimaryKey( - name: "PK_Set_settlement_part_version", - table: "Set_settlement_part_version"); - - migrationBuilder.RenameTable( - name: "Set_settlement_part_version", - newName: "Set_InvoiceVersion"); - - migrationBuilder.AddPrimaryKey( - name: "PK_Set_InvoiceVersion", - table: "Set_InvoiceVersion", - column: "Id"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.Designer.cs deleted file mode 100644 index 7ac56302..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.Designer.cs +++ /dev/null @@ -1,8514 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210902032556_202109020001")] - partial class _202109020001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.cs deleted file mode 100644 index 78f13b22..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210902032556_202109020001.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202109020001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_InvoiceVersion", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_InvoiceVersion", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_InvoiceVersion"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.Designer.cs deleted file mode 100644 index 98716c8a..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.Designer.cs +++ /dev/null @@ -1,8626 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210908064420_20210908")] - partial class _20210908 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.cs deleted file mode 100644 index 191e2ebf..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064420_20210908.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _20210908 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_item_invoice_price", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Period = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Version = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Factory = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - MaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - UM = table.Column(type: "nvarchar(max)", nullable: true), - Sales = table.Column(type: "nvarchar(max)", nullable: true), - SubAcct = table.Column(type: "nvarchar(max)", nullable: true), - CC = table.Column(type: "nvarchar(max)", nullable: true), - Backorder = table.Column(type: "nvarchar(max)", nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - ExtendedPrice = table.Column(type: "decimal(18,2)", nullable: false), - ExtendedMargin = table.Column(type: "decimal(18,2)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_item_invoice_price", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_item_invoice_price_Period_Version_MaterialCode", - table: "Set_item_invoice_price", - columns: new[] { "Period", "Version", "MaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_item_invoice_price"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.Designer.cs deleted file mode 100644 index f9fca07b..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.Designer.cs +++ /dev/null @@ -1,8706 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210908064843_2021090801")] - partial class _2021090801 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.cs deleted file mode 100644 index ff6e3f0a..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210908064843_2021090801.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021090801 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_item_invoice_price_version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_item_invoice_price_version", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_item_invoice_price_version"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.Designer.cs deleted file mode 100644 index 15a26992..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.Designer.cs +++ /dev/null @@ -1,8712 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210909023755_data09-02")] - partial class data0902 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.cs deleted file mode 100644 index 60307b24..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210909023755_data09-02.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class data0902 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "ErpMaterialCode", - table: "Set_fis", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettleState", - table: "Set_fis", - type: "int", - nullable: false, - defaultValue: 0); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ErpMaterialCode", - table: "Set_fis"); - - migrationBuilder.DropColumn( - name: "SettleState", - table: "Set_fis"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.Designer.cs deleted file mode 100644 index 45824a6d..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.Designer.cs +++ /dev/null @@ -1,8722 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210911114440_202109110001")] - partial class _202109110001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.cs deleted file mode 100644 index be6d6ed9..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210911114440_202109110001.cs +++ /dev/null @@ -1,75 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202109110001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis"); - - migrationBuilder.AddColumn( - name: "DiffQty", - table: "Set_InvoiceSettledDiff", - type: "decimal(18,2)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "Version", - table: "Set_InvoiceSettledDiff", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ErpMaterialCode", - table: "Set_fis_extend", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SettleState", - table: "Set_fis_extend", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis", - columns: new[] { "ChassisNumber2", "Version", "Model", "ItemCode" }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis"); - - migrationBuilder.DropColumn( - name: "DiffQty", - table: "Set_InvoiceSettledDiff"); - - migrationBuilder.DropColumn( - name: "Version", - table: "Set_InvoiceSettledDiff"); - - migrationBuilder.DropColumn( - name: "ErpMaterialCode", - table: "Set_fis_extend"); - - migrationBuilder.DropColumn( - name: "SettleState", - table: "Set_fis_extend"); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", - table: "Set_fis", - columns: new[] { "ChassisNumber2", "Version", "Model", "ItemCode" }, - unique: true, - filter: "[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.Designer.cs deleted file mode 100644 index bfe152ea..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.Designer.cs +++ /dev/null @@ -1,8733 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210923073158_202109230001")] - partial class _202109230001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("YearKennCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.cs deleted file mode 100644 index cfbc1b23..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923073158_202109230001.cs +++ /dev/null @@ -1,93 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202109230001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Model", - table: "Set_fis", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "KENNCode", - table: "Set_fis", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpMaterialCode", - table: "Set_fis", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChassisNumber2", - table: "Set_fis", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Model", - table: "Set_fis", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "KENNCode", - table: "Set_fis", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ErpMaterialCode", - table: "Set_fis", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ChassisNumber2", - table: "Set_fis", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.Designer.cs deleted file mode 100644 index 8e7f5a73..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.Designer.cs +++ /dev/null @@ -1,8735 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210923075035_202109230003")] - partial class _202109230003 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.cs deleted file mode 100644 index 14673719..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210923075035_202109230003.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202109230003 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "YearKennCode", - table: "Set_prebatch", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36); - - migrationBuilder.AlterColumn( - name: "CarCode", - table: "Set_prebatch", - type: "nvarchar(36)", - maxLength: 36, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "YearKennCode", - table: "Set_prebatch", - type: "nvarchar(36)", - maxLength: 36, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CarCode", - table: "Set_prebatch", - type: "nvarchar(36)", - maxLength: 36, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(36)", - oldMaxLength: 36, - oldNullable: true); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.Designer.cs deleted file mode 100644 index c3059b79..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.Designer.cs +++ /dev/null @@ -1,8739 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210928072540_data20190928")] - partial class data20190928 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.cs deleted file mode 100644 index df16d204..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210928072540_data20190928.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class data20190928 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Year", - table: "Set_prebatch", - type: "nvarchar(36)", - maxLength: 36, - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Year", - table: "Set_prebatch"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.Designer.cs deleted file mode 100644 index 701ec9c0..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.Designer.cs +++ /dev/null @@ -1,8860 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20210930051830_2021093001")] - partial class _2021093001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.cs deleted file mode 100644 index 060b97e4..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20210930051830_2021093001.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021093001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_SettlementPakAndSpareParts", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ApplicableFunction = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettlementPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - SettlementPartDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ErpSparePartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ErpSparePartName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - QADCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ProductLine = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PerCarNum = table.Column(type: "decimal(18,2)", maxLength: 50, nullable: false), - Price = table.Column(type: "decimal(18,2)", maxLength: 50, nullable: false), - SupplyProportion = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - QuantityPrice = table.Column(type: "decimal(18,2)", maxLength: 50, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_SettlementPakAndSpareParts", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_SettlementPakAndSpareParts"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.Designer.cs deleted file mode 100644 index 5c734024..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.Designer.cs +++ /dev/null @@ -1,8970 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211008014847_2021100801")] - partial class _2021100801 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.cs deleted file mode 100644 index 93331577..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008014847_2021100801.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021100801 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_SettlementCrossReference", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - Model = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettlementMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - BomMaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Buyer = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_SettlementCrossReference", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Set_SettlementCrossReference_Period_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference", - columns: new[] { "Period", "SettlementMaterialCode", "BomMaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_SettlementCrossReference"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.Designer.cs deleted file mode 100644 index f4677631..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.Designer.cs +++ /dev/null @@ -1,8973 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211008025050_2021100802")] - partial class _2021100802 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.cs deleted file mode 100644 index 7715430b..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211008025050_2021100802.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021100802 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Version", - table: "Set_SettlementPakAndSpareParts", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Version", - table: "Set_SettlementPakAndSpareParts"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.Designer.cs deleted file mode 100644 index 14758eaf..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.Designer.cs +++ /dev/null @@ -1,9138 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211009013417_2021100901")] - partial class _2021100901 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.cs deleted file mode 100644 index dee0b1e0..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013417_2021100901.cs +++ /dev/null @@ -1,126 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021100901 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementPakAndSpareParts", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "CustomerCode", - table: "Set_SettlementPakAndSpareParts", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.CreateTable( - name: "Set_SettlementCrossReference_Version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_SettlementCrossReference_Version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_SettlementPakAndSpareParts_Version", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Period = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_SettlementPakAndSpareParts_Version", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_SettlementCrossReference_Version"); - - migrationBuilder.DropTable( - name: "Set_SettlementPakAndSpareParts_Version"); - - migrationBuilder.DropColumn( - name: "CustomerCode", - table: "Set_SettlementPakAndSpareParts"); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementPakAndSpareParts", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementCrossReference", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.Designer.cs deleted file mode 100644 index fc499dd7..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.Designer.cs +++ /dev/null @@ -1,9142 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211009013927_2021100902")] - partial class _2021100902 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.cs deleted file mode 100644 index cd471654..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009013927_2021100902.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021100902 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "CustomerCode", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "CustomerCode", - table: "Set_SettlementCrossReference"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.Designer.cs deleted file mode 100644 index 4d82af3d..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.Designer.cs +++ /dev/null @@ -1,9145 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211009083009_2021100900012")] - partial class _2021100900012 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.cs deleted file mode 100644 index 013405e8..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211009083009_2021100900012.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021100900012 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "Model", - table: "Set_SettlementPakAndSpareParts", - type: "nvarchar(50)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Model", - table: "Set_SettlementPakAndSpareParts"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.Designer.cs deleted file mode 100644 index 0d9e84c8..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.Designer.cs +++ /dev/null @@ -1,9145 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211010014458_202110100001")] - partial class _202110100001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.cs deleted file mode 100644 index 2865a6b7..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014458_202110100001.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202110100001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.Designer.cs deleted file mode 100644 index e11fb44d..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.Designer.cs +++ /dev/null @@ -1,9285 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211010014700_202110100002")] - partial class _202110100002 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Index") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDiffNumber") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMentPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("SettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("TheoreticalSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("UsedNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SecMatchBase"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.cs deleted file mode 100644 index 4174806f..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211010014700_202110100002.cs +++ /dev/null @@ -1,62 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202110100002 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Set_SecMatchBase", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Index = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Model = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleMentPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialPartCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - UsedNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplyProportion = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Buyer = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Price = table.Column(type: "decimal(18,2)", nullable: false), - SettlementPrice = table.Column(type: "decimal(18,2)", nullable: false), - DiffPrice = table.Column(type: "decimal(18,2)", nullable: false), - SettlementNumber = table.Column(type: "decimal(18,2)", nullable: false), - TheoreticalSettlementNumber = table.Column(type: "decimal(18,2)", nullable: false), - RealSettlementNumber = table.Column(type: "decimal(18,2)", nullable: false), - RealSettlementPrice = table.Column(type: "decimal(18,2)", nullable: false), - IsDiffNumber = table.Column(type: "bit", nullable: false), - DiffAmount = table.Column(type: "decimal(18,2)", nullable: false), - Remark = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - IsDeleted = table.Column(type: "bit", nullable: false, defaultValue: false), - DeleterId = table.Column(type: "uniqueidentifier", nullable: true), - DeletionTime = table.Column(type: "datetime2", nullable: true), - BranchId = table.Column(type: "uniqueidentifier", nullable: false), - Enabled = table.Column(type: "bit", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_SecMatchBase", x => x.Id); - }); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Set_SecMatchBase"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.Designer.cs deleted file mode 100644 index d0b6db70..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.Designer.cs +++ /dev/null @@ -1,9288 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211011084504_202110110001")] - partial class _202110110001 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Index") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDiffNumber") - .HasColumnType("bit"); - - b.Property("IsSettle") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMentPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("SettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("TheoreticalSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("UsedNumber") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SecMatchBase"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.cs deleted file mode 100644 index 05db148d..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211011084504_202110110001.cs +++ /dev/null @@ -1,89 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _202110110001 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "SupplierDesc", - table: "Set_SettlementCrossReference", - type: "nvarchar(128)", - maxLength: 128, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UsedNumber", - table: "Set_SecMatchBase", - type: "decimal(18,2)", - maxLength: 50, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplyProportion", - table: "Set_SecMatchBase", - type: "decimal(18,2)", - maxLength: 50, - nullable: false, - defaultValue: 0m, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "IsSettle", - table: "Set_SecMatchBase", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "IsSettle", - table: "Set_SecMatchBase"); - - migrationBuilder.AlterColumn( - name: "SupplierDesc", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(128)", - oldMaxLength: 128, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "UsedNumber", - table: "Set_SecMatchBase", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "SupplyProportion", - table: "Set_SecMatchBase", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,2)", - oldMaxLength: 50); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.Designer.cs deleted file mode 100644 index 4130f021..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.Designer.cs +++ /dev/null @@ -1,9292 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211012080054_20211012")] - partial class _20211012 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Index") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDiffNumber") - .HasColumnType("bit"); - - b.Property("IsSettle") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMentPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("SettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("TheoreticalSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("UsedNumber") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SecMatchBase"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.cs deleted file mode 100644 index 7956dc17..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012080054_20211012.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _20211012 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Period", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AddColumn( - name: "Year", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Year", - table: "Set_SettlementCrossReference"); - - migrationBuilder.AlterColumn( - name: "Version", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50); - - migrationBuilder.AlterColumn( - name: "Period", - table: "Set_SettlementCrossReference", - type: "nvarchar(50)", - maxLength: 50, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(50)", - oldMaxLength: 50, - oldNullable: true); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.Designer.cs deleted file mode 100644 index b6337b49..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.Designer.cs +++ /dev/null @@ -1,9292 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - [Migration("20211012084512_2021101201")] - partial class _2021101201 - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Index") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDiffNumber") - .HasColumnType("bit"); - - b.Property("IsSettle") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMentPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("SettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("TheoreticalSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("UsedNumber") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SecMatchBase"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.cs deleted file mode 100644 index 9a289031..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211012084512_2021101201.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win.Sfs.SettleAccount.Migrations -{ - public partial class _2021101201 : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_SettlementCrossReference_Period_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference"); - - migrationBuilder.CreateIndex( - name: "IX_Set_SettlementCrossReference_Version_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference", - columns: new[] { "Version", "SettlementMaterialCode", "BomMaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Set_SettlementCrossReference_Version_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference"); - - migrationBuilder.CreateIndex( - name: "IX_Set_SettlementCrossReference_Period_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference", - columns: new[] { "Period", "SettlementMaterialCode", "BomMaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs deleted file mode 100644 index 74a21c56..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs +++ /dev/null @@ -1,9290 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win.Sfs.SettleAccount; - -namespace Win.Sfs.SettleAccount.Migrations -{ - [DbContext(typeof(SettleAccountHttpApiHostMigrationsDbContext))] - partial class SettleAccountHttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot - { - protected override void BuildModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("ProductVersion", "5.0.8") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarConsigns.BTCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarKBs.BTCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveAreaName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "OrderKBCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqFirsts.BTCarSeqFirst", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqfirst"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqSeconds.BTCarSeqSecond", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CMSerie") - .HasColumnType("nvarchar(max)"); - - b.Property("CMSerieRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("CarModelShort") - .HasColumnType("nvarchar(max)"); - - b.Property("CarName") - .HasColumnType("nvarchar(max)"); - - b.Property("CarType") - .HasColumnType("nvarchar(max)"); - - b.Property("Code") - .HasColumnType("nvarchar(max)"); - - b.Property("Color") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EngineCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InColor") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("OrderStateNum") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanSeq") - .HasColumnType("int"); - - b.Property("PlanTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpecialCarTypeRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("StateName") - .HasColumnType("nvarchar(max)"); - - b.Property("TopSeq") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .HasColumnType("nvarchar(450)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseqsecond"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTCarSeqs.BTCarSeq", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BarCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "BarCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_btcarseq"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DeliveryDateTime") - .HasColumnType("datetime2"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OrderKBCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomCode", "MaterialCode", "OrderKBCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBQty") - .HasColumnType("decimal(18,2)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SeqQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "DT", "CustomCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bt_seq_kb_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Boms.Bom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomLevel") - .HasColumnType("int"); - - b.Property("BomType") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChildItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("ChildItemUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExpireTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IssuePosition") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OperateProcess") - .HasColumnType("int"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentItemDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ScrapPercent") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ParentItemCode", "ChildItemCode", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.Customer", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Contact") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactEmail") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactFax") - .HasColumnType("nvarchar(max)"); - - b.Property("ContactPhone") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerType") - .HasColumnType("int"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Customers.CustomerBom", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("EffectiveTime") - .HasColumnType("datetime2"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FailureTime") - .HasColumnType("datetime2"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "CustomerCode", "ParentItemCode", "ChildItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customer_bom"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarConsigns.BTCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarKBs.BTCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqFirsts.BTCarSeqFirstVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqfirst_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqSeconds.BTCarSeqSecondVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DateTime") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseqsecond_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BTCarSeqs.BTCarSeqVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DT") - .HasColumnType("datetime2"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_btcarseq_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_bom_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CarMaterialConfigs.CarMaterialConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CarCode", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_carmaterialconfig"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.CodeSettings.CodeSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Value") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Project", "Value") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_code"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Controls.CentralizedControl", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Year", "Period") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_control"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedInventories.EstimatedInventoryVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estinventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSum", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Postingperiod") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseDocument") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.EstimatedSums.EstimatedSumVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_estsum_verion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.FISes.FIS_TH", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .HasColumnType("nvarchar(450)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "MaterialCode") - .IsUnique() - .HasFilter("[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); - - b.ToTable("Set_fis_th"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Factories.Factory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Desc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_factory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("KBCodeExtend") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "KBCodeExtend", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqspcon"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarConsigns.HQSpecConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspcon_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("VIN") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "VIN", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_hqkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreateTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KBCode") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(200) - .HasColumnType("nvarchar(200)"); - - b.Property("NeedQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "KBCode", "Version") - .IsUnique() - .HasFilter("[MaterialCode] IS NOT NULL"); - - b.ToTable("Set_hqspkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQCarKBs.HQSpecKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_hqspkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsCheck") - .HasColumnType("bit"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NewColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OldColumnName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ProjectName") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_importmap"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Inventories.InventoryDetailVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(450)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Factory") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.Invoice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountDate") - .HasMaxLength(50) - .HasColumnType("datetime2"); - - b.Property("Accounting") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("InputDate") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Number") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TextCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_Invoice"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Invoices.InvoiceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePrice", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Backorder") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CC") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtendedMargin") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtendedPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Sales") - .HasColumnType("nvarchar(max)"); - - b.Property("SubAcct") - .HasColumnType("nvarchar(max)"); - - b.Property("UM") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "Version", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_item_invoice_price"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ItemInvoicePrices.ItemInvoicePriceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_item_invoice_price_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarConsigns.JFCarConsignVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarconsign_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.JFCarKBs.JFCarKBVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_jfcarkb_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialProperty") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ShipMaterailCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipDetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.MaterialRelationships.MaterialRelationshipVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_MaterialRelationshipVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Materials.Material", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimateType") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("EstimateTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_material"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceList", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceList"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Prices.PriceListVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_PriceListVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecMatch.SecMatchBase", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Index") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("IsDiffNumber") - .HasColumnType("bit"); - - b.Property("IsSettle") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("RealSettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettleMentPartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("SettlementPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("TheoreticalSettlementNumber") - .HasColumnType("decimal(18,2)"); - - b.Property("UsedNumber") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SecMatchBase"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustment", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerComponentCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomerComponentCode", "CustomerMaterialCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryAdjustmentVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_adj_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Amt") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Total") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryDiscountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_dis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatio", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportionPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SecondaryMatching.SecondaryPriceRatioVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_ratio_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode"); - - b.ToTable("Set_settle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.SettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5A") - .HasColumnType("datetime2"); - - b.Property("CP7") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Model") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleYear") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementID") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementSupplier") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("UnsettledReason") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("state") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("state"); - - b.HasIndex("Version", "ChassisNumber", "MaterialCode") - .IsUnique(); - - b.ToTable("Set_unsettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettleAccounts.UnSettleAccountVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_unsettle_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReference.SettlementCrossReferenceVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementCrossReference_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementCrossReferences.SettlementCrossReference", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BomMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Model") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementMaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierDesc") - .HasMaxLength(128) - .HasColumnType("nvarchar(128)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "SettlementMaterialCode", "BomMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SettlementCrossReference"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSpareParts", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ApplicableFunction") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSparePartCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ErpSparePartName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PerCarNum") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Price") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("ProductLine") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QADCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("QuantityPrice") - .HasMaxLength(50) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplierName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("SupplyProportion") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementPakAndSparePartsRef.SettlementPakAndSparePartsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_SettlementPakAndSpareParts_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettlementPartCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SettlementPartDesc") - .HasMaxLength(2048) - .HasColumnType("nvarchar(2048)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Period", "CustomerCode", "Version", "SettlementPartCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_settlement_part"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.SettlementParts.SettlementPartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_settlement_part_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.StorageLocations.CustomerStorageLocation", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("CustomerDesc") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Storagelocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Storagelocation", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_customerlocation"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.TaskJob", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActionName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("Creator") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Email") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Error") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("RealDownFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("RealFileName") - .HasMaxLength(500) - .HasColumnType("nvarchar(500)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("ServiceName") - .HasMaxLength(300) - .HasColumnType("nvarchar(300)"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("TaskId") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Type") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_TaskJob"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedInventories.EstimatedInventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDocumentLine") - .HasColumnType("nvarchar(450)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PostingDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseDocument") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseLine") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Source") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("MaterialDocument", "MaterialDocumentLine", "MaterialCode", "Version") - .IsUnique() - .HasFilter("[MaterialDocumentLine] IS NOT NULL"); - - b.ToTable("Set_estdetail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationQty") - .HasColumnType("decimal(18,2)"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("EstimationTypeDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("FgQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("UnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_estimate_stock_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FIS", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "KENNCode"); - - b.HasIndex("ChassisNumber2", "Version", "KENNCode", "ItemCode"); - - b.ToTable("Set_fis"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISExtend", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("CP7Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ChassisNumber2") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ErpMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("OrderBillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleState") - .HasColumnType("int"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("ChassisNumber2", "Version", "Model", "ItemCode") - .IsUnique() - .HasFilter("[Model] IS NOT NULL"); - - b.ToTable("Set_fis_extend"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.FISes.FISVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginDate") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.ToTable("Set_fis_version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Inventories.InventoryDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("AppraisalDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndingInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OpeningInventoryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("OutputQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Price") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StorageLocation") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("StorageLocationDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Unit") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "MaterialCode", "StorageLocation") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_inventory"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarConsigns.JFCarConsign", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("MaterialDesc") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PABillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "PABillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarconsign"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFCarKBs.JFCarKB", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InStockQty") - .HasPrecision(18, 2) - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MaterialDesc") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasMaxLength(36) - .HasColumnType("int"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode", "MaterialCode", "BillNum", "Version") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jfcarkb"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BillNum") - .HasColumnType("nvarchar(450)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConsignQty") - .HasColumnType("decimal(18,2)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(450)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("InStockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasColumnType("nvarchar(450)"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("OnLineDateTime") - .HasColumnType("datetime2"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId", "Version", "CustomCode", "MaterialCode", "BillNum") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_jf_not_kb_consign_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.MaterialRelationships.MaterialRelationship", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AppraisalCategory") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpMaterialCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("MaterialProperty") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ShipMaterailCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpMaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_relationship"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Prebatches.Prebatch", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("CarCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("KENNCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("YearKennCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("KENNCode", "State") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_prebatch"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InvoiceQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiff"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Reports.InvoiceSettledDiffs.InvoiceSettledDiffVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("CustomName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ProjectName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Year") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.HasKey("Id"); - - b.ToTable("Set_InvoiceSettledDiffVersion"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("Buyer") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("CustomSubItemSumQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemActualQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ErpSubItemQty") - .HasColumnType("decimal(18,2)"); - - b.Property("HasChanged") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OfflineQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SumPriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SumPriceWithTax") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplyProportion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_adjustment_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("ActPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomSubItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomSubItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpSubItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StaPaymentPartyQty") - .HasColumnType("decimal(18,2)"); - - b.Property("StdNoTaxAmount") - .HasColumnType("decimal(18,2)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(450)"); - - b.Property("SupplierDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "Version", "CustomItemCode", "CustomSubItemCode", "SupplierCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_sec_act_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("BeginVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("EndVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CP5Time") - .HasColumnType("datetime2"); - - b.Property("ChassisNumber") - .HasColumnType("nvarchar(450)"); - - b.Property("ChassisNumber2") - .HasColumnType("nvarchar(max)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend1") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FISYear") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("KENNCode") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Model") - .HasColumnType("nvarchar(max)"); - - b.Property("OrderBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SequenceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentId", "Version", "ChassisNumber", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_send_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_fis_diff_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("R3SettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_settled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CreatorName") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomName") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DocumentStatus") - .HasColumnType("int"); - - b.Property("DocumentType") - .HasColumnType("int"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("BranchId", "DocumentNumber") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasMaxLength(36) - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomCode") - .HasColumnType("nvarchar(max)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("DocumentId") - .HasColumnType("uniqueidentifier"); - - b.Property("DocumentNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("EstimationType") - .HasColumnType("nvarchar(max)"); - - b.Property("FisUnSettledQty") - .HasColumnType("decimal(18,2)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ItemDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("StockQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Version") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("DocumentId"); - - b.HasIndex("BranchId", "DocumentId", "ItemCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_stock_unsettled_report_detail"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SupplierItemSetUps.SupplierItemSetUp", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasColumnType("nvarchar(450)"); - - b.Property("CustomerSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ErpItemCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ErpSupplierCode") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ErpSupplierCode", "ErpItemCode", "CustomerSupplierCode", "CustomerCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_supplier_item_setup"); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.Property("UpstreamDocumentId") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BTNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("BTSeqKBDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("EstimatedStockDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("JFNotConsignReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralAdjustmentReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SecondaryActuralDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("SendUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StockFisDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockSettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("StockUnsettledDiffReportId") - .HasColumnType("uniqueidentifier"); - - b.Property("UpstreamDocumentNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("UpstreamDocumentType") - .HasColumnType("int"); - - b.HasKey("UpstreamDocumentId"); - - b.HasIndex("BTNotConsignReportId"); - - b.HasIndex("BTSeqKBDiffReportId"); - - b.HasIndex("EstimatedStockDiffReportId"); - - b.HasIndex("JFNotConsignReportId"); - - b.HasIndex("SecondaryActuralAdjustmentReportId"); - - b.HasIndex("SecondaryActuralDiffReportId"); - - b.HasIndex("SendUnsettledDiffReportId"); - - b.HasIndex("StockFisDiffReportId"); - - b.HasIndex("StockSettledDiffReportId"); - - b.HasIndex("StockUnsettledDiffReportId"); - - b.ToTable("UpstreamDocument"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("BTNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("BTSeqKBDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("EstimatedStockDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("JFNotConsignReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("SecondaryActuralAdjustmentReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("SecondaryActuralDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("StockFisDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("StockSettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReportDetail", b => - { - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("StockUnsettledDiffReportDetails") - .HasForeignKey("DocumentId") - .OnDelete(DeleteBehavior.NoAction) - .IsRequired(); - }); - - modelBuilder.Entity("Win.Sfs.Shared.DomainBase.UpstreamDocument", b => - { - b.HasOne("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("BTSeqKBDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("EstimatedStockDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("JFNotConsignReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralAdjustmentReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SecondaryActuralDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("SendUnsettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockFisDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockSettledDiffReportId"); - - b.HasOne("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", null) - .WithMany("UpstreamDocuments") - .HasForeignKey("StockUnsettledDiffReportId"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTNotConsignReports.BTNotConsignReport", b => - { - b.Navigation("BTNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.BTSeqKBDiffReports.BTSeqKBDiffReport", b => - { - b.Navigation("BTSeqKBDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.EstimatedStockDiffReports.EstimatedStockDiffReport", b => - { - b.Navigation("EstimatedStockDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.JFNotConsignReports.JFNotConsignReport", b => - { - b.Navigation("JFNotConsignReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralAdjustmentReports.SecondaryActuralAdjustmentReport", b => - { - b.Navigation("SecondaryActuralAdjustmentReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SecondaryActuralDiffReports.SecondaryActuralDiffReport", b => - { - b.Navigation("SecondaryActuralDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.SendUnsettledDiffReports.SendUnsettledDiffReport", b => - { - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockFisDiffReports.StockFisDiffReport", b => - { - b.Navigation("StockFisDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockSettledDiffReports.StockSettledDiffReport", b => - { - b.Navigation("StockSettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.StockUnsettledDiffReports.StockUnsettledDiffReport", b => - { - b.Navigation("StockUnsettledDiffReportDetails"); - - b.Navigation("UpstreamDocuments"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj index c09813b6..47366b8f 100644 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj +++ b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj @@ -54,6 +54,7 @@ + diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.Development.json b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.Development.json index 46ab25ce..005445ae 100644 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.Development.json +++ b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.Development.json @@ -3,8 +3,8 @@ "CorsOrigins": "https://*.abc.com,http://localhost:9528,http://149.223.116.5:8088" }, "ConnectionStrings": { - "Default": "Server=192.168.0.213;Database=ABP;user id=sa;Password=Microsoft@2021;", - "SettleAccountService": "Server=192.168.0.213;Database=SettleAccountService;user id=sa;Password=Microsoft@2021;" + "Default": "Server=127.0.0.1;Database=ABP;user id=sa;Password=1", + "SettleAccountService": "Server=127.0.0.1;Database=SettleAccountService;user id=sa;Password=1;" }, "Logging": { "LogLevel": { @@ -13,6 +13,8 @@ "Microsoft.Hosting.Lifetime": "Information" } }, + + "Serilog": { "Using": [], "MinumumLevel": { diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Prices/PriceListDtoBase.cs b/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Prices/PriceListDtoBase.cs index 1314199b..696b5a80 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Prices/PriceListDtoBase.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Prices/PriceListDtoBase.cs @@ -44,6 +44,8 @@ namespace Win.Sfs.SettleAccount.Entities.Prices public int Type { get; set; } public Guid ParentId { set; get; } + [Display(Name = "客户")] + public string CustomerCode { get; set; } } @@ -57,68 +59,69 @@ namespace Win.Sfs.SettleAccount.Entities.Prices [Display(Name = "版本")] [ExporterHeader(DisplayName = "版本")] public string Version { set; get; } - /// - ///开始时间 - /// - [ExporterHeader(DisplayName = "开始时间")] + [ImporterHeader(Name = "有效从")] public DateTime BeginDate { get; set; } /// ///结算时间 /// - [ExporterHeader(DisplayName = "结算时间")] + [ImporterHeader(Name = "有效到")] public DateTime EndDate { get; set; } /// ///价格 /// - [ExporterHeader(DisplayName = "价格")] + [ImporterHeader(Name = "*金额")] public decimal Price { get; set; } /// ///物料编号 /// - [ExporterHeader(DisplayName = "物料编号")] + [ImporterHeader(Name = "*物料编码")] public string MaterialCode { get; set; } /// ///价格类型 /// - [ExporterHeader(DisplayName = "价格类型")] + [ImporterHeader(Name = "*分销渠道")] public int Type { get; set; } - + [ImporterHeader(Name = "*客户")] + public string CustomerCode { get; set; } + } [ImportProject(Name = SettleAccountModuleName.PriceList)] public class PriceListImportDto { - /// - /// 版本 - /// - [Display(Name = "版本")] - public string Version { set; get; } + ///// + ///// 版本 + ///// + //[Display(Name = "版本")] + //public string Version { set; get; } /// ///开始时间 /// - [ImporterHeader(Name = "开始时间")] + [ImporterHeader(Name = "有效从")] public DateTime BeginDate { get; set; } /// ///结算时间 /// - [ImporterHeader(Name = "结算时间")] + [ImporterHeader(Name = "有效到")] public DateTime EndDate { get; set; } /// ///价格 /// - [ImporterHeader(Name = "价格")] + [ImporterHeader(Name = "*金额")] public decimal Price { get; set; } /// ///物料编号 /// - [ImporterHeader(Name = "物料编号")] + [ImporterHeader(Name = "*物料编码")] public string MaterialCode { get; set; } /// ///价格类型 /// - [ImporterHeader(Name = "价格类型")] + [ImporterHeader(Name = "*分销渠道")] public int Type { get; set; } + [ImporterHeader(Name = "*客户")] + public string CustomerCode { get; set; } } diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs index 09e9a2a3..b623c84d 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/Prices/PriceListAppService.cs @@ -23,9 +23,9 @@ namespace Win.Sfs.SettleAccount.Entities.Prices /// /// 供应商相关应用服务 /// - //[AllowAnonymous] + [AllowAnonymous] - [Authorize(SettleAccountPermissions.PriceLists.Default)] + //[Authorize(SettleAccountPermissions.PriceLists.Default)] [Route("api/SettleAccount/PriceList")] public class PriceListAppService : ApplicationService /*, IPriceListAppService*/ @@ -162,33 +162,42 @@ namespace Win.Sfs.SettleAccount.Entities.Prices virtual public async Task ImportAsync([FromForm] IFormFileCollection files,string version) { ExportImporter _exportImporter = new ExportImporter(); - var _mapList= _mapRepository.Where(p => p.ProjectName == SettleAccountModuleName.PriceList).ToList(); - var result = await _exportImporter.ExtendExcelImport(files, _excelImportService,_mapList); + + + + + var result = await _exportImporter.UploadExcelImport(files, _excelImportService); var entityList = ObjectMapper.Map, List>(result); - var matialCodeList=entityList.Select(p => p.MaterialCode).Distinct().ToList(); - List _ls = new List(); - foreach (var itm in matialCodeList) + var _ls = entityList.Where(p=>p.EndDate.ToString().Contains("9999")).GroupBy(p => new { p.MaterialCode, p.CustomerCode,p.Type }).Select(p=>p.FirstOrDefault()); + + + // List _ls = new List(); + //foreach (var itm in matialCodeList) + //{ + // var priceList= entityList.Where(p => p.MaterialCode == itm).Distinct().ToList(); + // var _list =priceList.OrderBy(p => p.BeginDate).ToList(); + // int i = 0;//查询下条记录 + // foreach (var price in _list) + // { + // i++; + // if (_list.Count == i) + // { + // price.EndDate = DateTime.MaxValue; + // break; + // } + // else + // { + // var _nextPrice = _list[i]; + // price.EndDate = _nextPrice.BeginDate.AddDays(-1); + // } + // _ls.Add(price); + // } + //} + foreach (var itm in _ls) { - var priceList= entityList.Where(p => p.MaterialCode == itm).Distinct().ToList(); - var _list =priceList.OrderBy(p => p.BeginDate).ToList(); - int i = 0;//查询下条记录 - foreach (var price in _list) - { - i++; - if (_list.Count == i) - { - price.EndDate = DateTime.MaxValue; - break; - } - else - { - var _nextPrice = _list[i]; - price.EndDate = _nextPrice.BeginDate.AddDays(-1); - } - _ls.Add(price); - } + itm.Update(GuidGenerator.Create(),version); } - await _mng.ImportAsync(_ls, version); + await _mng.ImportAsync(_ls.ToList(), version); return ApplicationConsts.SuccessStr; } diff --git a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceList.cs b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceList.cs index 3017fc6d..8c04b57a 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceList.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceList.cs @@ -31,7 +31,13 @@ namespace Win.Sfs.SettleAccount.Entities.Prices MaterialCode = materialCode; Type = type; } - + public void Update(Guid id,string version) + { + Id = id; + Version = version; + } + [Display(Name = "客户")] + public string CustomerCode { get; set; } /// ///版本 diff --git a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs index 2d5dcb19..5a34dc83 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs @@ -29,6 +29,11 @@ namespace Win.Sfs.SettleAccount.Entities.Prices return await _repository.GetAsync(id); } + public virtual List GetPriceList(string version) + { + var entities = _repository.Where(p => p.Version == version); + return entities.ToList(); + } public virtual async Task> GetListAsync( @@ -71,11 +76,31 @@ namespace Win.Sfs.SettleAccount.Entities.Prices List _errorList = new List(); //写校验在这里 - + var pricelist = GetPriceList(version); + + List _list = new List(); + foreach (var itm in pricelist) + { + var entity = entities.FirstOrDefault(p => p.Type == itm.Type && p.CustomerCode == itm.CustomerCode && p.MaterialCode == p.MaterialCode); + if (entity != null) + { + itm.Price = entity.Price; + entities.Remove(entity); + } + } + + + await _repository.GetDbContext().BulkInsertAsync(entities); - List _versionList = new List() { new PriceListVersion(GuidGenerator.Create(),DateTime.Now.Year.ToString(),DateTime.Now.Month.ToString(),version) }; - await _versionRepository.GetDbContext().BulkInsertAsync(_versionList); + + var _first = _versionRepository.FirstOrDefault(p => p.Version == version); + if (_first == null) + { + + List _versionList = new List() { new PriceListVersion(GuidGenerator.Create(), DateTime.Now.Year.ToString(), DateTime.Now.Month.ToString(), version) }; + await _versionRepository.GetDbContext().BulkInsertAsync(_versionList); + } diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs index cdc139a1..20908ab8 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs @@ -306,19 +306,15 @@ namespace Win.Sfs.SettleAccount private static void ConfigurePriceList(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) { - - - - - builder.Entity(b => { b.ToTable($"{options.TablePrefix}_PriceList", options.Schema); - + b.ConfigureByConvention(); b.Property(x => x.MaterialCode).HasMaxLength(50); - + b.Property(x => x.CustomerCode).HasMaxLength(50); + }); } private static void ConfigurePriceListVersion(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) diff --git a/src/Shared/Win.Abp.Snowflakes/obj/Debug/netcoreapp5/Win.Abp.Snowflakes.csproj.AssemblyReference.cache b/src/Shared/Win.Abp.Snowflakes/obj/Debug/netcoreapp5/Win.Abp.Snowflakes.csproj.AssemblyReference.cache index 690c812ab7eef728543a479d739a06171cee8602..66e05f37ad1c1591b201564c56f923d5bdc4980b 100644 GIT binary patch literal 18773 zcmds<4R93I9l&ojDSk|2WFnxWmM^Uc-Mvdf5&|jaOKKn{O)SOXY}~us9Gl$jUH0}u zk|83DZ49N%ePf|-_&5F$fuloVR|5}mQOjC@!H3j=f%%Ft3IGlfpye%!s?+*|J5 z?e2`n&A{Z6_g?-VzyJUJ-+$kwvZSWAlpr3m*=z(~TIl>qh~Y!dVvnEY*pR@}LV$OY zT-eJ9&LHh>q`geY*}w=co@TiaNpoC4panL-g`C;;Y&+>7?M@%-a&n9i5@^mt^PX(* ztqMjck!KXc8KlSOBM9(|ZL{BL+55NScMt?|A95sdb`%g#9I3p-ucd!W!53*SDsS5A zSsznKQB-LmCFwzF^q^!tsE8gEQV%Mk2L<$?w0clT=_EaRY~VFn7UnhZ<#%qA-`CU@ zJ8Ws9fP}5%o0-4e+_^tvLdFXpc1)`H?0-4CujRF_-o10z=wsKWy|wnehmRgwu(s;I z8^Xa0<0@*FEIPDjckw6Z+gIM0{qpkM@r_qrP48uXPC2z(`Ab?&MSbB%#2rAU%*>t> z#|mzLgjk4FX4?4q007|7qKF+x`?T?;VV@A@nIet}115aa##e`3KGr>#X?-Tp$Z$mt zyTeY~Jq4b;oC14J_H^)jz>B!6IhVAPIrbdK3>)z)0uwJk>*fQYK)paREds-d!h}c< z6J$6K!?{~ou7Poj$T_Ej#iO`^H_poF%yKxhEIRY4$V^Dy%A>35gcBlpkKs-x(q-+U z|D$1CLnKHeuG*BOc7#swhQgH`8`LX>Q_`xo9)IG)T@wmdpIh?M@A$({-@PK^fwQZ; zTZg|nwZ3j?QO)*AXIC5?NBrxHHFxcO<)Pln$2ZK}_IcI=V?TJ|%0cGj&(5XK?fS$$ zG^^p=*?eE&z*j~0?BAFB%jT+qw|D+2RCF%u*&TgPF1Y=rKdu)JoLS}>{P@hA;jZ1I zIv-r$@%WJ;3Do}gS_`I}-0?ioh^rrDS27U}xU|PLBY#FtLG}!fhi3BZvQxF-E;Yif zFW{zqY@3uLF@c?@ngU6EZr;(`+9XmZAnl=^g^6f~DTt~y#AH(~Yl=eYiR%Q5XnfsJ z8dW=sq+Q|;FXhruGHe#B=0i}kK0c^`O2)Mjsa^t;+D)cYt1(0}2&=V7QJ$L;^OZ$# z`!Q23#|i5LJf?e zQrse9YtL|kyFE$+EqW>qD3oBL29h8)VlL|ENw|m$gC(Vxb_ZOXoLd6Chvg7EpGq_5 z2+83T=%9TYPAU$%Uw1U7mzEmy5|j?xRd9;RU)8#LnCLV%8K((!sBy$zpzEz?#Iev# zFpfrR)RTr``lrc=e4hl zdn(c5Ll;R);}raQDUM0RMIJU341{Qx4>UtSdjlRqRZ7X3tqhKYZh3gtj~_jJRCG(G zq?c+CA+`-hzG5BXPsSlCsVPZnU00|CQe~|njHIbfH zj`p)|u>bR7j5x^Ykr)xbLkEM|q{CS&Pnai8C{resf*(U~d~o^zf3I|~8mBi{3KP)_ zk)yxl5%8YS^q-a_=oLL>K%f9+BHn?@PNfVwSof!Q_P@1d_|@uVe;}9TP5nm~H}TNq+|oNQ zZ1()~!0>QM{*LsbM?3mvzPxf{)$HLdX+w3F=+l4hzu5hD=W7cx{{3a+@xL$rvf@bk zp(A_FwjLbax9gICUt<%7l##tVOpM6uFYuZmU#NEW(1+mv9frm zLeiTcL>gf!N!SQEDq$&&D5{_?)BFG$URnsp@OlZg)6h8;)b#bNHw^mEF^xWzR_KNw zsPN%j80XYrkJ9R!h&=0Prp44N=!ow!Mz_Va`CGLFCf!>tpj%}SLx`)iNzoDo-5%HV znMJVgG7)x$Yi9WX=Vv&fndVu!nIRQdkyCVng?2eyaDHS#nAf|X*rwp0kC8G^YhlL0 zkOgsovX!BLKF*cK~pk&JS!y_2=R1F(RgS{%8?d@g|WW8Se*v>Kr;)P zli)K7s#}T)2839fR!0{?hr)zcUROc^T^8uCff)qm^yT$!k|6&2`lKlM=)SzZnie6y z&d^Svb#HJ{YlsE+&JE#SttmG{`HultXQ6MA$Zm~)cozBXSlqJwb2*3A)f-(B3DQY$*$mTpXMOi=( zWu5*CN{1AM8U550rJzMPw`1Of^G82W3H#urFW~jwBn#^RJWrklQ?GmU50&=GgUBsP znShDu&rK;G6x9+WQ>|L+wfpLBW_^qJGnP&jFJYxqoeu>^T!v1kuqr^OQ`BrsPR&WD zC=2L8tJBXz>2OP>Q@fg{0Rl*2BB!A1rlh4Zjh)ox>d5LqLW3q^&4sxDBcl2HVLmu!|gr6!&St4n#TjE zC*8YNy{mAVi`;PHEQHDLJEoKYaZIEI8$J|`1NhBMlzQMVPR5HC1;lbg0TJX`KP#}! z;KN*+9ISlsCPyz7S4Zc;Z2ZRcH45e5L)r(3urnhgHvgpR!RKx&pC+>Zs(-(F z_3G8DicwRm$~>OAo~$fStZZ2I^tc#{SC{%jfp8!$#RMr5tM-N)>O`qJD)<%&bz;1F zp(xeFgg`j%6~f_&BuIfsI9{EXlb7So_2yIu12xrQQHo1K*e}HVdFcO|C`zLeJxWOr zuRj>{puaaOYvcnXD80$VPf(>-ETHN~h?tDGU8NIU&q7=(k6oIZax%JOHzOD47e=S>cXyhdq6!cy6&Du7%h(m^bGkVU0-*-QBSC#kFjh~kG z|I=N?jf3kxJNDZvzgWENWbx-azBulyD_*IK{rTsqPdydw|Nd9|AAh;^)QPpj{_bgq zWa`vu)0?jkJ>nG49Hug-^__tLKodFwkApYow7z8xL8&1ojtGklh>757eJdMkf&t$o zv3Xi#kr*D4o0FR(U~Sapqqwo`A4^&$31)AH@n1l z=6&2|($z2d9zA{G!y{vN4!h^yBRcMQy5O?LDfis_*C*p6KJGSq>z!j~9dY3k8>F2d zobP|=g%8I4aP_vft54XlYS7+C6#(ykqbrlhzee`sEb z-!F(oIf=Q`Q+U0{4h+3Qjcgo!3Couulcm(pAb`%Bd#wuSprqsDrMm-Z{j;sK>INZG zbZISI%5exjPn@8>)*h&1Vo+Jjg(N|Xx^gm{AGnnSeZ;&}VA+ve0&&f8(17_)4;k`ec8$4>lvYM;%{?_S*mre~= zo!e&I$>0CF>DaO{-wi&)-*?~}w;#RZtgBZ~&s#I`?Mqui2Av?lOe z8+yC*L$AwTWH(krll_wAHWSp4E{@Z4W{C(i5B3)#K)cLBk)WgO}3uH2B zk`P}M2hP?sxh2si!mp&d=iCGCzv!z=_dhS7&5`S!5fhVsScC;fn-=Vq!Pq z^^1!e#A+0X@fI)_MA|?a7qfSo_7y@At{3?N~)WQ`1Dq27U4M&a4_P4c`$$8~XNW7I#jm<5(P=bk=q10eQaX{@IU#!TJV}Wv zodoD-GHl9Zp&9h(!kL$)yS)MEsW){<&uoCaik_Qf!cqh{CtbXA_mXLUD%kd5&*43? zJ{bPX1NR>+$&y-kFWUU!?)}T>w|=SPMT@83zV?bO13x>|`K3qi9=^H5FPk5~rGIeY z<;CsGUp?acZsQk)AL~E+qT7a!>l6NV@t(DR5l+u~_($>e6JGr1?vKCmM^Srs3 z%5u5GXtjer!1?U^J7b*{6nm)pn;I(?TxJf(INAK2o2J3AQU=*@qzpD3L>Y{pNj@-d zBkq|pY1y$yb;^JDhKYF%|E*m*W>&XR*X?+8_OMNd`i;2zt4}Mw-4giVIN!eiyZh$b ze^^_2{$t+riw1vkb-4dCCl{3c-)EcspYQzPhf&2_+l&~n>dxVptl2na?@ip>=9#^Zf7HCI%bkDv*TJVx?-UrbUg51{+k>Ou zUHDv{XO7i)6Uda2fY`j8+MHt1S5V*=iv-`${5*v*LqNR_2$>WJiAy745$$;z#h4_< zs`I_b_+q-~bDC+W>Dj0$+VCWr5)-%h?=`3VTiNn-Hns8`f#joCAvREvG=VY+o~;Ou zNumVLHi-mg=&x@bm>F#TZp$CL-VR>yq5_{tSmJ=SISeG}Wgz2=TpkDR!-{QajVU-a*s zL!JQ_wmInkrQMxVH@~~F$C2-Uv+ELn|2K+Pe0$r*?>#d;-|XGd>6&{wiC@MBU3}aP z3PT^Xf9U1?Jbdl;KvB1*A1{pFFRC_WVox%gu={S~Bk7^2>lXQK2 zwjQ8~p@gGmr-CiMjZ*~m@io*E`x222Gd zwfc#SGYV_t@XrUXaYPZ>drJLb=zXR&*L6?_{urVQ`a!@^uS;`X(+LY1awG}`{b-$x zzvp241xWx5_Gr|MP`>)D{-(i}TksxiSy;eeV_{Xe$zaQWVB=sfN|$W3+3@-!A(VFm z8FJKkw9=Ri{JrbS)q(G-5j0wB2OR!*rmPe3A(NnqMR7loA+?PYvMk*RVWp>7Sf1Q! zP4=YODR=DX5={6>CnW0toU4n{4IngPXOE$p)vV=aCzF(#zN%#HY@ElmJzKF6saw+! z2Ygmz*t5lgTTM+4H8qsrCeIejYvUv|r~NT4@rhA6 zou(dT4Wf7mWS=nx_ZhGDA+~Pe%crW-(vx6kYz~~C^E3a9@ZX4)g3J`|Lo20D*;&@Q z*f@7-e?YaOAZG_cKA^E`Q!-P;=_MZ!ZUvm6j6WbOIAB_^NR&Y%TSNSZHco<&?gv!Y z5b#50V4U2J4F5|T#;PAm2MsQz32^KKnfe2Yynun%A9Lv8^a?~L~vvao>R#=@H1U-=Jg9PCKCd

wAqbCrlvB+K?ISk+ zK^^?=8b)+W;3PC<3O%g^U@~aYD8p0El-|%Aw?} zR^v`o=dC|ecYQJ}ETDLG#>={;vguB#QCan)o1I!m8z(#MFENBJ0|X>7EQEc{fa$G} zn@>wLCtu=+r=Mc_66uz_zeHLIz_ih#F~3B*fsK>Xkgl1G)GS1aASks>45LIUh!;IY z=`jZPAXAjRq^~+fJv1N%_NliqhWQ#6@324BbNln7S&p zDVdninr`aEklhV#1)P(NcQ;sYz;s}dsLzG$Ztx%4I04I4lPxr`aiXA!(~Wq;B-NvwE}(}t4YwuJLwvI?nsQn*;LN0(IBk|4 zFe#c)l<}Hi7TLzB@TL3Bpfn?x^M!JAP(v~aB*@&6Xr#0O&cLEfzm0^*km1)vR=KDBF{wdNE{G1jP_K=vU{Va$I#h=Buu%7h|QUb85=Y)Wjz<^qa5ooDVgh=yHTw7)FRkRZ*4e-%&yG)uT&Q z7D?^oPJ3xQI$4yI+&}p^t5WW#O;c9I!((=iS2EoDB=4fkUFvlA)#)0}Bl!saWn_vtz`n)k=X(Z-V0`PJfCHb;n zI$TzuA2C(=5lTc}`4I%so*hFfq63-3!|DyBb)zk`vPK|Ha9KLIl;I$Fk~raf*>A!* zfpSm?*EOKJZ)t*@fVf=kOb|Z$fT$vT5_5F){ebYUvjtwgzG-5sm)oVl)&i!46RJyq z(SwlY1^6OXTN>>sIw?8g}Ko ztA{?@)entjE-w+cThFIh9DtnGmhhhI3L+lZ~te|z1^$ol8LA6NPD z`fC3NJvNSc_rHq<4em1T?j7RbZ+En7GxrYV)?4lqLucGwG`Y|-n?2+-X=oTAH?8t> zYijd{78VKq{GtLe-=;!@`k9HNjX*SQ(#mANJ4);z0gfs}sGG|~4=SSU5ig(e}M^C6u1bd+^ZVv zuO?Fsvie%61_7{T?RDlS8-1ET8+STartcd1BNEznd!wjIU~ME85~%u>h(t!|U;V;6 zIwGOnx3^O5ZVc=t>dNd6w%@!>S%*&{gOa4D!lsfVD6e|x7kgP=pZT(!L~8^o(mMI_ zoJ4k)I*Ik5iJ`HTEA0TPy+JnUm#2>{*^8svNKup*C!)l~5b^?pR@4?z?jp4fAFcJS zkb9H0oIrar85`@4KxVJaoLOs?t&lCEJW6ZHT}o^nWL7u<3(cbmY5ST8VpNC*Pz{(o zc1=s7%@owMG#VfzK3&vfR(Yb(f~l2aVCAr-T&+X?#Wt1c=Fyl0NA+Hi;6|$`$1Y7G zfqA<2+`p|{b>FSuPO1KI?ewp&9PsL(lIxGT@7({cD!%8L$7&k>bjNiM-~7ab4f{Ua zIO52I51f76WxdYKefz%6bst>c^yZouFP?bJu}?g8|Mo{aytna#i@xso>yx+7U-!EI z$2Rx0{qdG9dp{o2W5^Rr&Kvpa;2C$_G570Rc78JV;IR`&_AD1itncOdb;nKj?^O0H zBWIRf<7@nClxLbr5dx2*JjB}N*A^BRrLlRA^73yl+6Izc!AN~Kl-V=UolB!Je<{cCAGrqA$tQ9a_eabVf9gblK#u2Lo~Kp8aQkbN`0Ro^CVx z)&DNvJE`ikU3(r}_vz=IYp$xe9>22Qjk}ZUm!AT|ID@#1GE6m3Iz*f$6m7_L*DAG!q6$93uy#ILg0V|5yGWl zR2c`86CTyJ<1tp=ElSj_(^aSURSD@zE2XvrLgMEJ2`%p?d7VoUO>J2QWCmkMIiXTv zA1a#lc(tjQ%0_Eh5g-iH?T0~@$bGXvP98K)(+zb;qmh^-SGx7qL>kau+b6_PMh)^u zhkA?54ntZBTAkAu8ekyH!7dX94UXM=oj0?NY@)> zDuCQkq=4Dy$jN3123})U-uCC0_w~B8e7I8^-2 z%7TZ+Kev1NV~X?9;rilv(;BZI<(a`yg}|f?0LTjwOG@&K3&p~M;-V7dil}p=dk+e_ zF;G|Qu&UomHArtG~IrsRr;u*)>xU1m%t0zTf4R7Ub zzx4LMXW>SQUO{vS;<2&m!um3M2aNQ4;6n#`e6e`^vg~zESSQhR=nKmtFoon?ELPH zWj_ymaoT&G&iu|N?Oxpf;M}+FziMgdmjySp{dM1;Zn!Oe;)g%HTd{flhIcogam|ev zfBEyIgCob@xFft|&9`et?cCll?@-S}*9ZUp$XEX;nEr4%?$|G>#LgSkA!JFRMWIOFkN?7m&#->}3)unjw~0 z(M_^NNa3J&?)q@qgMX}kz4^p8EB<)P*O3>xuUYlT;9qA~@990_>We#eSo!4TpS&{A zf5VRZ-&$T6eDmgG#E)N`bX)f8zkGS-sK}gu4}Evf(aT0((re4J)5~7ke`C8lI&~j* z{^x`KHK_IdvnM_O+I`>5?6Lf%$G+-ttLGkIVANo+!rRfJFCg5JgM*io=4r;0V6OwfR*2qu$%sH8A`r`O>dFf=5g3V*w zSALwibL;-EZt-5YrQ_B^$Nc-ip@j#pT=mltjlq@W*RSn!-|$av*#FwwPrY-)-lDGk zT3vNi?DYSwxOVx@_nSIh`AplUDFYAWby)jpn}Z)6==bEUUmp0{UtNCmx~J~E{?xfO zr)?2W>;2>FBc!>JAs>Hz-n@G{?!0cqfDl-szQl0mDBSH zl)1QkehN)D$wH?G4gLAl$a=clm#eE zonyvSdtL+;+9#dlcgD!SRV01{v7DE;Jy4fOjToqn5Y?X9+tXT}e)LP;7t6o2|J7le zcJeoP1kfcR`IQk9zS_ehI-Qw1fDLTRdVVAbo+N^^d|w|WOQhZvK^`H27IsqS(jOC= zxmjLH?E*TSJ!kmZ`xrKATzixjXX1*r^;O>|+Kr+->04g?w*r-%BJSP zInDf@vPmhxT$-e$K2vf}+0@F$xs!`$RK_B8F(K4zw98DfG zO}W5|ETnfT+WzP^Lb9_-no>#mire?r^B0_$*za^QHUe&M=mHu#X|og3W-HQCd0qx- z^_v;lF*FLISc*-u)ppgMrOK!WK|`4!h))OELCc3Gx`DR=lNo_HDpoK`h@;2n6tuLn zx6eO(K?SBK(a+f2(_Wq}^ou@%lmA`6Op>^inQ10PIH5AfZd67!)YghI%Gz}Af0=4+ zI;cviO@NU2ctJu-3R$39R!sCP{a|K*2P8(d&~7~FBTZydP(A1vI+S8rmENj?>>faP zV!YsCOXX5)vmohEXMh&O=aK8Y>io`(_g@U@8K>oBy-NSITy|gedoa4E@As|vC60-28qyPTOL*;KNmWwKAU9U z!A&tkSzh!@@9xAnQy@R3&CJNV;)+%3w)+$fdEIy$dYTRs*-_)A4$)wc4!lsctZHoa zprI!QNI5fx97sTlv++hR@z${r7yYI2<}l@Pe|Ox~$gMp=Xc|j9!b{dwDF- zGbl&Uvo!!M-)_`79>3jH(%G)$ry70PUmfWL1dhJysMF@RyHUxs*(9$bZd&*}zElIw z39~3?%%(L*MHHlL6k`&7H*NfGpK9MuVk@re2ZU{jLkp`;HkaDATEMV#Le9QZezp#b zeIQQ$)!$A4VrBm+zqQ=%Gh8^|S3k6z&=KsnR`i_(207idxuO~Z9ew&WdYczNN*I?K zpqZ?JCD?%7c*r@4?I*NoMTl~#q9}|H#WC1^)MwPLX>?^CkTC4x7T+V!GY4wcb3;wybOac50 zEiM)ceT7B2C8z{g&d`#?-=UB3*d7>`gC8h=RDT<2`#F+26F4wTH3NRB+ycXtC@wYW zI513ULU6J5i?#g(R1sPJ2YPRdDmbgzck&J66Hs;!=2tBPuRr?cmQ%r&O5rK>caC!y z*gu3!rLAAS?Z#J;UYoeU(GMDoul(oCX)@>cax=b~jHxFD8(+B#rzx;KjbwB{s0&Bp zQot8y-MS)X7^jgiI{*zbw=@!_P%bsixV{2YCxVr&Mq0Gnt)hijo(LrVH?hw>RA

HAdm&0We$fYRFu^M1b7}*}7)J=qDsS;0D5~2=#wb~G&Ox6zw7qi400ew@TjakIa#^}Xy zsezfz9$bQttp{@p?8XPbP*xfb=aMCgR4wVMszX~699kAIH7)9d#5032tQjB! zDPm&#PHbE-QX^jlPgE-}6N2a^Y=N$ML)>M&6SL?71c}>D%t9XpuUj5$B>Ye?}(L2*@wD{Wh&Z_^~L2qS`gh5|GL^_%^L&C*Y==+ihA)!GKeW zZ?9VZ95Su&jWA$ZZ9h>rD1hGWlxLQFo+Ov%J0(FHhp+%|(2VkxuezGx=i3|eTF30{EcrtO-13uBHk=o$hs;ud4j3FA_HaEw8x3ny%BPaHr(PeAnv1WEK)Ns$rnKOoF^H zG0Njot8%u*@Nz=P_KmtS4V6Mn2nNL2g&O*pk$5-wj7r}U2oAS1D!nu=B?q6G>6PJxj_qZx6sZ{=46ZRK|2Ys7 zZe^}C8Qtf_;Idn?3Y?HQ+ipK5u~QaZMOPFhytJr31jH8Ma1l4)=I<{8Utt_ngbsNv1C zu`Li8ZkuPLJYaNMmWjceXQMh9AOu;QxLBDAAwcb$$<;C1%E)bi$Z)kXnyl{gUT7;L ztHB8o+fTG*v?mK8ajJ;UwHqWkb6#7LNRS1eXq#IDvEg>2ZI%dZYg*Pag-^823T1#2 zWWlmM#aoeFl$s*3MRJm9ER?u{sNqC%0da~qy9W>{ZYkbusa%Q`PB~{Q#R)Ag3t6SE z=nJt;^g<@L0pi1TA=6}qEMzUq4$%vltOh4UY>)WLfU`1?$-W9leDy7XxNwX3>ZNh1 zmBA5Ty)vB8vAxQIEcH}zaf29_s3S^p%M4dppxXhl;Z|jVmc^ye;3^BWDsDoiO7u0L z;+@UP@GB{xWKp7#!R=ZCGFXV04skQ;8N9by+#Fl8W9Yb57HQ^WAG05Xmd!ps)7}OyM!K-Qk5VHS>6U(ic6>biv5k)qm-ObPs}1{6B8J=`{>W+D2VDyl7CDnAbBU0kCPt^G$dM)h2tdEl}gqRh#I#SmXpcmQrv0*!_Emg z+aGc^PEUEDu3l;q<$o%(V>tNkZ=pKX4G0{!hn!Psf7T?e9-g!dHlr;1?u;EPkV^)~Ls!`29&nb0AXO-k)TM|nR*DGaQm7bKis-}%E8CyWpuUJ{%~6r{I8)@p%T-&2pU$xC z1jLKm(;1e6xfC({l!v8WoG_bb_t_VvfaaZ($W~|51`r5REw7U>gS_tB-c2(NDJN8H zKNpj4l{UnDs3hrBC7X;mP5*oKT-6Zab1`FEAU532#fAMF{3)15aO_?5rh)I zs}RDd@OF&F5?RzNIsu{LxTskO=2E)IqGq8NC(Jlns+s6c4^0>G#?6*0(H01m1D1-C z-F?fP*-|Cc;e=4!cE3n{<6C}(5EWdHsW(jG-s$1EP)ofOKmrB>@XDUND-f`AxOq^? z#dE3c3cv=R6Mm9o_{|8!8-!pPSuY8He@Hb1YF{9L=Q<7`t(*HS-a_E;b3)MeVlq=z zJHd)P^tz!&b@*{H8FOnOX55O&m?d(lX~V^2%nETr$^LUd6{Yb)*spsTW!|4}P&v}h z0rgFR5b-+))QjU%g0yo$y*8ZiIgi(3I3bLD`AAfA#ncaiS)Yi6BytUQIrUEgLU*x; z_X?R>RF?uNr9CH{ShfAWB{tH=snde1WCx1xTUvAhQpoMTrG;27B@W-Ww9twZUfi5A zgjXzp5+cwo1qNA0r;M})LdD%FBNBmmYFRfhjZPU+CTp7cTYw8W^8q0kSenRsAFC7^MP5F&tP!M)0WPb)K*YEQxUA%JDRRaD zmz8>)5DfF$R_gW8Km9XT-Um$i4TRS43OW{jy?TC7u5VSw_LUk1M)?rqNdQX6?v|8$gRVN^H{8BHh1am2E zTIz+BUYszqKO35yagO-=XnY`oSc4*m^tO_5(d!uGd=@6apdUW(^B z5XYs<1wPO-Xu}B~+udOzcC0xnMe1Tgw7%I}8mx<;biI0-rvYuwQxAx-JDjR75HN1; za4Pv+N*s2FQ>n)ZLEGJ7wjO2is4_o>SSEIdEjt0BJcRG2?TB_FRv@PbS|Z?9yIiv&~s>!C4mc;p-aBVlD!km&aF(#p+^FBdB*U7X^CJ8_dN%|=oe*zH43%Dh0 zvCW}TOqWs_O=~VVv1xlIjW%WIvkLnHQGp7Cl8e*ToVwIelRY$BE*~8+PC$j?(C~h%Nrcf?r3ddlXI&s3v_9C*H@Y?!FNWw*A zaT{R3oLdoDEQd>Z!9{Jc8Uzt|m>y7P*!Dy$beJbUL6)d$iwdt3qw~&1VRb`^6S0hK zfyi)6#4^eQM(2T_ull6b^14-hnucBZ?&_h>_1@QNoA^lI-V0`*aox_fVxLQHd}?I3 z?w>s{@~+OgTaS7*f7cfa`qd3t-{aHV+qXV`%%-;4r@XmrTjcqUhh|@~@2$d*%1hRa zDQkP+!{HYW=r&^O^WR>#GP3@;@5fbsyuRB1L641N-u>^QL4&)DyL*Q?_}d-r+RVMf z(=ID3EBA?^Gwv>$TcL2B(4QTLSUnmIkVq1`JQjOas*`lL0!AG*H{`I!qInNM0?L zRfbAySE5=D6hq{C7ryIY(FN%HaJ%bZA(l(2!gn1kv?6%fddO&d32wdktZS&`Q2Io5 zk80Hi2pG2#+*WeAlrUU^+e$4?h}r(AqF#Q6pN$_?)HMXc#O+Z3(Krf1}H&pVa>HWM6O7#&p9Uq zb)r8Kxe*W?k=L=GUfNCa_T=QOtkx^CvaUhDJ+c-02m1G^Ri(LEt7QZ z7Z5XUcR{Ts1B2GG7Djv*)LO9&P=hRx+^t!q5EFty`c+DDNlFWA8a^-F2Z)(t)(p!9 zhOA{RmR8mbtCay_kOkBB>p8}cgb~=p*K-U_fk1J)o?{Tlr5xewIR<#8!NIIF;@4kv^-?gA4UR7N6Her2*9BwSyMi2#5^7gBC1^OAU^8(1P{ggo*u;@R)!ec<@Qe=}LLTM_&ubjb5*M zKUyT*)EWp5zeu=AA}~QMYs0Ta!c7WgfD&Y*zrglLI4!wmbjWJe6^CZ2cEGI4dTx<# zN)`p2)b&ngFw`JZ1kax?E*1)Xg+;j~`2}Lm&=PrlG$y~={`%bvA=n^JYlsG^2VF>* z55Im#T4~dBL_$1tz@7NzS&sg<^$PjS8~vBt>vu#Fmwwgw^*f@79+iA=&S`zi8iG61~mqc{Jxb%a^mqc{B5NvGy+Ut0H?XxNcsXjS8J*m&b&>V4DMYl(tkZ`R zMz%*gk(M-!g3n!S+)(g8dV%6#HsT`QhDhp>d%1#zrgl^r(^(I!ik21r1vDowWyiBQ}Zi3J1HVbA#8KJ^=HhyM@=!(7{8zyc^Fr2Y;k;r1B}dkr8| zW8aq;7Nxj^UY8eQ)Mdkq-&A2Ic=lRmn1R}atE zZ(rMf`&GSfsTg$A@Gbx7*7LY$&--SV_|CkK+f2IpCEuf`FMN1p?9O5L{Ch;l9Zwfr z);Q&!d;j`me8k7yW^cW7?5ra$d}4#N^MmvK554fgxF4?G)^_y?8&(b4`>0Yw@9syM zhYoya>jIB2m0kokaLiBe*OU~O&jIut&oBhX853B<<4Ind4|JtV{8Xr#mT}a6QLqTFWAlMFF~? z-(Md4y9(-H$e5`8fsC&F-590y+$0-{6zMN5%X)^>mFL`U}l83a!Q zCnDoc6RDZT-UFXiP2)*`K>$*Cj&pk(y)!ARKA5ea@`&%6PJ26&LoAj)W#(0lYY6~+FR z-=o$I$Y9#<>zS2;26;?Mxz7%YsmGlYbj!G}zh#k7G!jOUp14#2|yGta?UfflGLRpF`CwNa3Zw9NkYd)V)P@+o0mMOl6gw1p-_4PiCpHGmq-Cg zRCAwwtOt!gCjc9r1W_kujclCssecaslNqz_r zRtM8!lL+flTG?r_N%Z7|>v`M_t3fB$<1plO*~|QhEq?@%)Qg=ntCpg=l+(rOO$aAS z`G>X*^QJBNPhA;Q%_uvxt?viq(YesJUObmF$PR7mRpSI6|A^!0fKV5X#L*=el>ETF z;6ei3?A!;dp8$l>!HA=kq%P%>9dWc$@~|LuyeI^v`m%b_hn^DDj3fyPr6!dA2`!sY zTGGRoP+Cb&gz~?YN`G=1l<#$WRb9E+w^FH2Kn|U|l}gFxQu5fhQYpPS!NxyBc05|F z#|DBZY$-qatl@U_*nKK)>Q9#y0#*OVEk}J^c zivq0PKm;AUD8Q1^r6{s53a}L9M5F^zNUV*TvBxH}*MGuEqmW5{2oO*QqmW62bt$Lp zC}a{nIpGR^C)j)h3_QigI%(_m2QP0|$vlA>;!-;RDNOs3V6!5?vus)s_Z?@?Pd3(^ z;NqX0Jzhd3``8BXnB8?MX6)o_Q&%8x&LwA?By_2*V<%^uv~w|pQq%&%n=gu`fY8vj z1wv?$@GyhWpdBX&&*gsDCqMG#EsKzxOO${fLZzFuW%rWsV=9WLv6lk&4*&vrp>qd) z$uxD}x*SPoGC0x6{}!KV&NM9lob{fHCHoeiu_us6=Wg*C1$3!>WZ&X5D#r;x$r{)j`Id6MPN?uH~h5tSHFOgHnfgBvH&Fa7}ju zg6Cl1nwHL`*jWUwY0Wr6$N%<#Vi>e#mZUPUZx6_=frvSGdq7jceQq85_JFJqC!n0M zVpGul_gKJBTd~vgpHdw-Yb&O810v?E71N|U?5vok87JuYCm6_IOx$?qjug&hCm2wj zfWSGIU_i;{Qry@H29#c$U<+~IBuwzjHLvMc(w}U2%aI%Q^*8b;&} z5_^rsJ%FG&x5i?@TnZU`jm1iF0*wDrLq(&{;xKmK9S^BijeXQ$>qCxb`Q;Zn8pK9J$`C}h77&-#+bMC0YAfHR=V;?mbbmIh{ z1IsJ2e#+}&nlCr*rngnb{6+ejMFJ~#PV6wXz1KBX*39V*wJXvj}whe+z%+^FN@LzzXq>_ zQ3#BGUs+&{-vqp z^+=hQN}-NUc_O5-OH=9l0daG#G?iXFm)bXWX)3*Ht_E+KP&Zx-M&(_H7Rw`xt2KC} zUyB5fhv3u^MAeF!9e=Px#bR8&FbbNF=K$NjPC= ztn0b~0dp>6T_>GOjTrmhjZQO8&@JR{!4g_%HjI?9?aBPUl;%LlVvbocqJ;bG*j(#z z<^02y5E+(rMXNu+hD;giyy7EZ|W zPlGbfo@Nori&^Y6C__gem(Ha@8RT;*iR?5egKnJQ<9}?c>4DxikBRYkfIhY**T>k$ zwv5g|2pvo!UMRIw=*kfi4H*S95i>7B8QE+OX$Q2t~mFNuv+w3zHVOCOdXApI%4djF?~NEYR;X>>cw-Z zZDXIw>Q&JICvpWz!2Vd!Bis@1m*{}36HRMDk|A>mJ%_K1{#l)cD zjv1)|#g3>jIs=JxFrvZ`(xp7IBPtC2IMH|!|ML)oGSgy07#)zrByUy3w@8#I$B^9m zE=;y!V6aU;2?*-t&Yg>Zba&r=Wl2WU!wF%>HZqty?RW&Zkx}~r>2!P}L#yRJ6q9ab zRMj|v$3Hw%Wjqfd)qdE~Xte_nHRr-Jv?A_fj2(?ub>ak<16D0i7Z!q3k$-6Q`hZ1v zM%NFBnuAtNC!R~)LJO;=Q;idN{0o^?X==o%gSOh+UspHF>_TRAFCcWz6*8lRb18D{ zLT0pLoPaxre>_kHt}+&pBECq_csZOrb2gam*fRSAAzbO;Zi6YOOL+{ZF%_K1bilz= zXH45toO;a%NzdQZ?-9tJgAN|0$YJB)C3NBh7yp9XRdP)h-`GHqz7R>Cp=TH5raA#3 zbFLsaC7Vl)nvZSN$V731jsKb3OtHok&m+54_L&>$14PZaGdCidOG#s&xe>KEfyRIL zfK-?+1%d%7K$|u4HWYjJK=%T|=G^Xq7S5%(v3C!&Vw`~UbKgBMe6wyWGY-Tm=vdx> zEV%o8v6-x~luzo7x8#?A?%i~IPf58oOQn3K=nce-cgkl9DP3yDsFcqX3UVTn zQ`ncGOobSV#F~|PQWB*0eDR>lA{F+v><6TfbJ*8XJeT4}g?%km;{@JvKIQXvmX-)|zQXN>db)=38g#C1F`1VKKnS9Y^ z^aj%D(e=o~P ziRw~77pFHNoG4wzDb>$%$r}@H48$Vg5PGR^h7bz~HM&4F;k6hrJglDu1oz6{3tX1W zE+u$rhEv1|WnNW0EK!yZQK&!ELPBHa+^-s4s)`5IuuQiI>3<3kU*1(bfYQ1YT&ju( zP*G0EHahGhOb7>*DO2|LRTpeiF&zN-kWp74o9FS3Wm?V{R?dCV%>ZotIYG#&?7ihY z>EB=&aMmL#g;d%5q2WbuCHi8z3sEcXe>9CfJ@q4ijQ(zWdP-E6 zLJHZ_Q(AJO)M>9$_lyl$&mmqV>I$Ut_wp*Sa)+l^iL~PcA*brVmVSx0`z|iHOEr&F zbzrM*K=?RU2ey*VrB;xt4s4|vC+K)xT&C0*Ek;Fj^b__qPY5p*eM)VIRL7Ro#pN`9 z5|B;a7njqJ*rmKu7njpemJ`C9DnX=BOtYROc1cx&NZuL9Dep=U$%S+&np7o-dWdy-=eseZB<|Se7AZRW*Bov2>NkAWY;>kTL+2l zQizvjK2e;o<{xRYoKMZt{?g|K6=Zg#$?7Kn*>y0|WF@Ifab-uEtd!(LDF4hmIqr$> zzBUF>9+Q=^z52SX>RyVSd1w7IfRs9zd1o!FOF3m{-dU^3iPUqsNA2}0q0FCXB(5vR zz5UsHR7_7}E;SZE0LbWt&UpbAg1QvYNIH|jiB3*+1Sn@*KWAe?HKN}y`jshDj@ik5 zN2-oM%Kkt$dDjt0DW^-(r0NKyRPit&v$DQ99`Ff4LMAbr5HfN9mQE&?^Drh8tH_B= z{s|$n%|z9|B{4KE7^$g|AH>r3MI?UDP6#pg1rq68LWo&Jm%_+S2r;Y22}J&vI>yU^ zCqy4R*7WF6J5|4ueG`+_8wjI=mpWKdx|B!ur4E*YoQUL9{D<;EuriuGyyC5=RS2o- zj^++P?l>3!G0Wvr(x~c=W}P^}72v*;mS5cQuJ zPtYxopcqPEY2r~A_O^k%Sirt?YxyI9KsuP9YbmNr*<>f^T58FOQcm^IsIN_@k+zi} zPY+S`&@6fZS>#*~%|bYr(nr-pvrvo^aQp))<&nBN>p%*r;KB~1uzCXlbTE*@lG3Fl zvI8kB1vwGP=@~ZNXO$pQf7@EKg(S8|J;Ro&JCI4<&#S&#|?aI=6Q*$mdc7*?Sj*Zk*ubAFaW9j23Ges1rAW9y?m2>jnhR zxoC|}I+tR{j@IZj;{;s;_n0%*VoW0n6{3Gprbx+*A>5t9jEow40?}LMSS;EopiAki z2aP@_0Qui{(alm-q#@>`?)#I|HTHcMMrR;~4&HZR2T_v2`>IFVr484LXWmJ(pg-7@otqbwu?ym01;2>FBc!>JAs>Hz-n@G{?!0cqfDo3d^@&)wwpkJQ$jRol5RDMo=Zb_DB zk)1FlE@*q{!bj#aeDYvVuO#h(NX2;|l|(EsRg*5>xqHd9KNW0yu;=g|Ssx7l<$?PT zmSjn-yBBT#aQFV@^IN~v@uJ1kZ(n=GmVuug>ip89cMsp(;g`*i-_k$0@bcpJ<*y#` zeYf$8!jJWzebH@0$Mp$+yLivqzX+#iJ^Z8i`Ux-obN9#J_;Q}#bYkhs=^J}}dGelt z$33&Z>xZ|N<`3)LX8-oRgNN=`sM>Q**I!>4^3GYFc}Y~t04$%cxF$Ehw$|s*^ZWgU zxh$}3^_f)hCrt5H2BKmRJy=G?x;8%kfNG$+GTH$_;^H$g#BnJ=GZ?CH0w=`5BB6@- z4KexBVX4n2#^WgHFU9CHrq!REry|r_Rg~QW2vY+`tHc%zj8)58?G_{*?F;~eEP1wu z4vY$v#hRm%e49C1kFL1VRZ9BYyjo?fZ>ml}%(#ROQpx60(tN4(ay@ML*#RX{@~!UM zL9oGJQ*a(Otk5Rey*N25tM!VktZUG3k8Fkhf&P7JRcUTkYvj-bLy`TW` zxp+A9+IoW?J_-fmas4^tsEyC6oMC64)gEZicslbevB0LRWzmJ5d6r5USTP7#wq8Fq zT4Hoo5cUP4sLmYP!TTdklxzR%`YTnu`lajzgpAAe)0D!2QEOTLnLnjs82|_I(QGYj qqbh;vqK*!6JHMiY}5w% diff --git a/src/Shared/Win.Utils/obj/Debug/netcoreapp5/Win.Utils.csproj.AssemblyReference.cache b/src/Shared/Win.Utils/obj/Debug/netcoreapp5/Win.Utils.csproj.AssemblyReference.cache index a8192bde21d09331ff55cf3ded8bf002d40e9a05..4aa03e98952b16810dd05640d1ca46efa95bf3e9 100644 GIT binary patch literal 177051 zcmds=37izg_4s!X#6K#iKtvD(HT(j~>@It8h-6t#*@czm)a96+>D?WeogQX-cUe3@ zQBmUw9>I7JjlmQ1(`dYc8u9vp_lb!n5sf6`^)tpqMgP^kU0u~Z)iZDB*RP#o{fN76 z)$m@|w_m+_^f?%*(n9e_C>a?YEUuqbJ9|cO_Uwf<)xk(C79by7 zP|*9O!3g&(2M;#(2e}22l-e3ul}VsHU3>gzUjW!{NeP*XiOPbSXfv!uF#OK z&?a4Br*wr>xcfA?LxrSQM|uN+xi((&^0k59R!;h;~(pR)MP^MA9v=e=(=?>=_Ts&`3m%ED-9L}ONvU0#})(@d5A$mi7#x4mCjN$ z2E(Yg2b(Y))~O3?1Vkc)fCLjlQZVYA4-*NGde8BgswP`PT8a^}{-mKMA$@tJ%yvLX zB508C@^04OAE^w;e8D3{LZ!w#RII7w)%HOq8{Kt9fH2JS9tK?^`9^=5{?L$yy9qel zspe2Ju{xU2ormJ!=wMO08&On0qpD7CR;5Oipz+;l(L{B$ffKPkWU=r?tr;z*aa zhVMb0i+_>#RP11=U1Wn3zt9jr-Ong0bP)+Ww>=}8)hMS8I_-t73 z!VMSqnHmk>bKLh||MAuvc3yJh@Vzhhd-L(%9(m);=f?kN{_j2+bxPAaXCAddIr-4* zpDO+8%9-lI@!f*GR^RrkqJQ?>Sa@CYfuDUFd1J_`*S7}lxcuCbqneI-t>)&ZdW|~z z>xru$(bnHLfA#F{^Y3VE>R;V7#+NO40^ ziBcX4Hx?I{mlAhGx1dfRB zug6Rq6901L&JDi`omBAP*UB45zwnnGAAAumdT#SEmFwo+H0aagcaAvn>0Nzy-&$ER zZg7uX+g>?g%nk$JooDp@{`pbwoEnIM6=Xo`4skKWr4ENH8j4FA8^e*&kw~OW=u)d) zqdAfcwMXMkgyWVLHJ+8+$!7B^qdBAW!{|RuO8c7+z~0g#(ge|k$oAZTv@4MnKD%g= zg0@ijob6B*c?A`8x^0PulWIzB)PgEmN9`4ZvDNtemT2-_l9|&Uq1ZR zkz+R=8 z^1=nD9Qvcjp15z@BfbB8(|hNC-sk(rZ(F+YjmXzM?&H2 z^xB|{`@DMK(U-pRaKE>I{-4L{7A$}Df?vHf?9NxpKB;_k?vI*F`kfO!sBP(8GfpiU z(*Mf37rQ++sCe76H@^@I9QNcP&usg0)~Pjh2PY;}G+eRj&Xafk^`2Wlo_Is}i~A4w z`GAYh8Tj_1bI-VO;H*y`Jgdk1_q>1lr*Hh?f1lr1@x{8*-%WpZ$C^hClzMNfSTeV5 z)1<(Bfhs&q>F)YHnx^uOL8$QV9~93#&;b zm}(C-=`LCs5y`Sk`foys1R=h@j_X#LN|0z$mEMi~Z@n7>?Arw|Zd+>Ds3DoV1oW_@ z&RJ%Ibzzr%F;38Q{R$2JD0NJ~!py>g`8#;+OWi)JT7A{_f4zCuwv-{ug)@-@AVL^huzfJ@1;I}sXXM#p4<0+Ji5;tOLx{D(|7Sx z6>q+D!_L7Y7mPao-&3x;VCs!e8T>UUXKC6Mts4WO%vv!Nji&-Zv3zuSSw*Cxw4!uu zQAOEU;lkkpZ%}Mf;yKbdO^GugM_lxh3FNTMPlNOVGI^P|OcF(N#F8qyS+@vTB4CI2 zeX#0*pVz<9aZHc3KfmR3_4)pntbgc)?-$kY96aI53;Oh4_xPnBzC0pw-IMpdy{0Vo z*3E}1AG|R0*M)C<_vue3si*&a%)2`eIcxHTgYI}{Ue$}cu0QDZ!}^aq=i`xo8`=H7 zMKhm!{oXGY3|RBxqo4IY@Yc6`CFY!V%k3-op85WvN4z{Y`Q^Sn1CRdC-wZO}s@e2S zpscP}Ad+<~a)2{3rZh5kY-2-FaYva6A*kEj|k zg2vWLs-DgLv!={7EL>$G5u8I-tYqcN)~@<8mNo4RlQ87oe(v03G{XiS=4@mT)+tx# zpW+p$!p*QYX$w20HMUw(h3wNE(h{DCw1wt6ll;In<)q!L%aDbeo-cpBVEfixpWPBX z?~XoO_Z|B8J^PmLy?p&Q2eif3Rd3ob*Nez-_{P$j(_YzVaPymqOV=F!darSTI;L``9y}&Q zWrz(Uv5&^G#tIVqh?EtDN`#o`j=k-{dw|LOXsR_7n-oe#!$AWrE1>%E?&nQl1~UDe z%>%tUiLp6n`u}qG@NF7+fR0ln@U)m;5G`?k$PA}qohFcb2H~jznI{XSp5Lr9QR*+$ z(xS+O$t57W9MJ&r6hR~S`32A-;iGl1lh?LrK{Q@6I#`>GwnVjPo5F4UMUG0Q+ahOk z;55cZ8@#qfPLU+FMT;3qPK_8(#%%7@)V9PkQ)EWkh=)W%^_sGZOE6#*9iG+-2v4Ku zCMZo3Ntv0OrU()$r+bacq}Ikpk}tzt<^IS1%(OPWO{L5xKuE$^knoaj*5}GBZgPI@ zww!8zm^t79*-}~VH6B%JET)9@{lgUTkmKRjWKxL>t;%3iL2(ZtJV`8g#8OFWZI)$x z)H$F9@t32RXw7J8Y3+=tTW&L(uZ|X|YjpsEwbBo;ETJUjYH6kijf54d#hRtYNkC3X zlI6X{6$=H4EEekl1j`qT#iWvyERn@xN+F@O0@GsEC6sV96pOA_B8)Az)E^>vmAEcI zxKe&tElw;+=?Z0j*hqLS#l*`pS8N(QB3(-$MooTTBxl@cUiw2t!X@rKE-eW)PQ39N zk_{RQR>tG1W@P$ti#bNmFiTOlUO<@I@L+P2Oj5HH$@<8VP)j1CHaVn)gt%RH*?Kc} z@ME#=j-J9?JAMDnzJapZC*&N`fw8;)+bcfowx((QkoIwxzkAV`X9vI5?P2Aip@Ww# zI{BLI8OH#C-vDJu^}O3F)> zk}^F8vklh#I%>IrU<0mRDt zR0VgrH|st~mYtydnj~pCg#FPXp%e1nTJbey0&@CUW5qQDI{HyOd&CJNsR3Fbdaw)| zup1BA?D2e?napS@mE^YzfT7#WW)q-|LEC2LC6&*(&~0W@3xQ8J-O>Wjsuua?G#p=6{VP`0rNN&p)d4FBb)7abmL}fWM&?6``_l zS$XkTavDj|n6aIIhrLwE^XRi4{2*KWdTk{eiEU?S=19=!GuI6GrlLikIZ-4v=`{Mx zX~J;v^o{j=o7E6m|D#UPrmWJGxPIgg7kOsyFx_Sq_Yl6-I`H-oAlf#oSSo|3?C&|< z))apT8%j^#e9w)qA-!dMqlY};FuwZlg~OB{sYNrsmWc{(yYiSRbl?*Ab!U%qoiRb}Rm`doR2WQ%O;%d8Xrxcq4ao0!!sPR`7~B zx&eXX&vmhB^ncxd$)?d}-RYGokf~&U=sDm92~T-f3o1~7jCxo}aZ4GtwLH+hIS?=J z>#y8J0-Le?ijOaL*9ZwG?-$3`B$*1@i9&@V4KDx1uvCLcOZ0Y{BZkSM3j`k z7Wg0_;fT7zoU5uaZrWr`j3-W(As!v5OOiMezEf`qmba}f*7 zRDMOp=}OE+s~qrxY_!C@wn%pIMTui9*X0=VHFE0%1Wd!SRBm!fN?1dd$Bl%T=M@U} zVX+)*77M2p3buwon9wQ|Y{E!N5Uo(K>4Jof=P7tIX6xC{i6q(j)o)9hlvK4Cchd(u z+J&az2|EBWLQBCD3T5DwJ#mtzya_)emth2?v3p*$>kxh_389#F&9Ve+C~48IYbW5M z8?9*9RWRU?(jr;c&tby~UkC$+)$<*7hXUlVK{vT1C5$cx-PA%t48yDEEZBmO7H;Mfq?p^ldG+ZXfN)`Y_31)M zN*1@uNY@DoE6-yL_SeF4VbWs^wuV5A&|(ZWVI;+e#u#k6AYtQq;s6nP1~~>Hq$!a) zO-+&;nAudvvdn4XKzeH+Kxl~r=@Lmw5ltLOR|pBEX0HS3MDiM?MNM|pkn13oh;B-` zO&aEx4>F@4qV_pAwSF5(U$F`M01?7mu?gjp)Bc%kChLRz2ja7`zQp~ZT$pE&7KzPs=>Na5{ zC5JB5ZMq;~cbkEGL3=%q?pQdF< zE%0FIQHJ{OftaA3re(<}pBF<<_tI5BLgF;9{g}>`5}SQ?-h76+Mmp4-UOQU=v1q{Z zSvWZ%VB}ZQb*=4D=70ty-P&{iWR{`@r)ydwcuI;tce6OL$s~mOC$@$_P|*Ann=s&6 zCck*0{)tT&By2nn)mcIdCK?*5qiuk&poQwF9AHlJEAgI&>ZlqyAOgv>_k8h8}02u&v3jX^QS> zrz?~LN{|W5^AvAGaz$%blPmNj(_~9$38LlUuv|cz;w|n0L<%j%TP&5NSkaVou~JBA zp-g18wnJZ-ZQ>^~y$ui_)QQZJ6*7_KmmT6KGF=TML_Cl9>VS(fkl7X_jriJI0&zi$ z_}ZnB)XLC^uU#1=bUZ(0L6>@tva(f4@n`n4Dl>Y@0^bgZ4caLSyeyJJLr+=YRgnpq zIwjmn4)5$R9=}n<#wH~m8QLx%kfE~d2gp!WkdQ%%=hP|5wrE(XRikl@VZ#>Xd_0G5 z3q%Jsp2N!n#wUN{IlMYKAOwl$cz(r~ZYk^3@Ct>Wr!rVdOngPKH(p z=Y+;QAX)@0>;Qxatq52s6qu&`vPHBASg2DDSV1fiO30AB3KT1Aqk{3ohYVRuAV{bo zLne)+1o0t5rVJ7~3%t$<)Va5KVIk&TYy}29d1@(EE+Caqz8#1f_7E8k@YAgT2cdW$ z+i7i4lKS1R^NFvl@~5pbTVlm_9BqNt1TVJZkVjH`V&&>M)L{t0Pt^h-Ym)Q6qfi5j$~)hTFJi zz;_uf+{TF_>1#~GZJZ_y7f;_{&ugpaD2+5!GC7(`=tmVf7P%~NLQlhT>jMM{t+v`t zE=j4PwbgEFAtC1ZMb4c3Q(B^0a7Ohs{lY*;q7|Dsjx$}UO#OhUpQEhRYS!8n{ZC_b92?)qx)8^80|JM3k#jbU5v7v?xs zu)JZGJxVXkaWn;Dg?3?%LmWv>7rijYp$!r~o=1v#u~(7HboHa)xnn0-;Uj&g_0B~8Yvd)goKsn_fK-d*C<*j64F9!@|#q5iMbt0@1GPj2O@=b|D-@9Nr9sG zPYN_b!U@w#iBgs`S}E26h?E~ziU}ntR01o-bV9<)^Q$wsH)3u_LJ?igq@H)FX{+ef z8Lpjxc%faL;VPJC%z7fgm+v?Swhxm2Y`BH|>!k zq2l?zm|j)dnhcX8N#_{ZWXx&$&#PyehKTNqIokrULE9H|$|I@Sq5EP^b&wE3nA8|T zo!`|M$CoBWEU`(=r4tY;#7WIXFiGiRlbVZONSGm7ss*H`hreQidE@DpsDmGs-{{Ac5BQW~{0X)-p0D0Zyvv|vaj~@v^&kvKC zW7-K()WE%M~+U2;uoeEF@9vu*=y$1qj^* z0qhwvyQq=^sdafwkXZG+-jW(==g?WfRki}9^_DJOfE1$DTe^rPDRH#k(nTvIywIF7 zf>$z15+X>If`BZiQ^r~Yp+a}cm_%Tn@~Z;V>69^razF`Ehv|929DNh2RlPJ^gb^*6 zv$q5ygjO(Tmj;YaewAF(f;qb~IiLfnwe&u|YWk70_|g$0ca*tZR(#db7KjgCeAOY3 zqySm*RfjrA2%!bIh%+Az#iFY_v)-o~2aOUhpPSYgQqBOETVEhz=m9P_`6NZo8Q^kL z4++6I*0R#BhyCgY7F`|YShA$|0%F&Oy=qLCOj6(?SsytPYCc&zmXu};kTHR>$ZBS5 z$NB=X^V!-l`6Puev$bRDAtC5}>V@ej*sa6D7VbU)Hq%;p+!O&Xk{;ux3Z5#pTUOF(`xzCv3w(I;Fu%S z+deA;EkPLD>(M2ZZ`1fx`@>{-cv>Cr`Gy`nt~Xc}3q@Omi#58T=V%JV1#LsmA&#We z1>MkdXoG~0=k72QJK2%Y)TU%8(cBTNj5VnwU9XwvX?Tyb%?)De4rl8N1Psj`&L*Fv z#8G!Rn|eqHdhQO3^{7fEjPY^AGO0W4+6f39nmg<&n548(ci2@gB+Qat`%z*Aro_W) z#C8Kt&9*J3o%^xr5oGQO1a38!*Ogg1NvUfFJ$fYce41og;6h~RGEcIsFAzVUCs`(+ zqyT1~WSM$M2(I?W`YkLg8e63#HFD^DIHZwsGHa2^0#KtezKYII0OEKqTEdpt96H66 zl*&Yx#sY~=&ogPPAtSF8*jxp=HvfOC%{?G?OM>AtaPMk9k^> z8{a5(dTLe^vubP&OJknG4nUyLVxB^wBxQ=mV1+s%VdeQDvX=1H{K!b6hse@4z<@d0 zA+l5sNqM1%+EO(bBJeOh;GAL46S2rAxVb6;MwPQCWoucp<0aBY3$y#Y5(dH0_yMxJoQw7Z{FPWbZ4gL*8!J#bJ# zK|%3jW9HvoKC3K16S17?x;@5Mmyo=U4xO4&fK4`TLE@DYa6|Hq}(Td^a=_aG+M{wK47nPy1P3dFIHL6=5 zAYf=maJ$JRDPi;oZa1}%5cB*}MZ5e0Kbu~vXln?B3GGrvn=q0Rv_SO2B4Ois?8r6% zDgAy$V-$>CLw5HajUA=81_Fc@J4%-bOi_MTVWlgS14@u8ti@i3$PLNuIp>U^!}ym( zZv+HK!P@q-OS@TLo*Z9L(0y$|!Bynj1G|ww$j@`?DvJxcla&kkC%<^9b3RZcOmJN7 zIZ9J&ER>wGDv=~hHTz-MYy;WmYNvMrB82N|r;7zPK>4+Rv$@*oTIGNjWF_bQgw~uS zM>^_J>#F8ZJg&sJKmfbY-kQ+TS_7fNo6yoE0`rt#28wQm%uQ1$2b3TaTC?X9nkD({ zHYFJgB@#-6c}Fa&G>DpFL3mqn$?Dqp;(N+m68=nSz%4b>qYwjG4suuQMtg7<=15C zX3eNtIUoj^Fg-8NalRyiz$PuvaWn-2g;t*95JysuXnBr98zg)@&nn==Htdcu3Py0V zu6&IntH9Y72oPFUfm0qy38GmAPIZtFLRB4HUc7px6wick<{Q=8!c21Buu=IgeODff`_nX?5su^CthI-G0X;k@T&mx8E^E?5LCki%uL`)f&@Ulgfm+(yEcz z*oi}HTN`50@Jyv+uDU{rPk_A5p1YrVlFxKaOU%=vv8dKzJbz>K886iRbTkD{325%8 zLmWxTq3)+c8-@=!nH7T10wkHcte*T@nbfd{$Z&v9Jb=O-&(GId5RFIFb}q|;AwkdAGMfOgKs#THmsCD9==oZv z7D#w_UizmW%UB(auN0XKTKY%Z00BWO{iAXivSxP|X{jCUmdlU;Tt&}=;<~(@_ug{% zG8zs5OFp2bcFwjy4*)GF?vw}Y0_2ySr$KS2It(GO4*=PgQ@r*8bh$~T7kA#dz#|x7 zPG)J1f$w<>mVb~Y5b%XR-Ay4jZ1A}n@aB77B%&+6aIzXEmmS14kwvCOBDRLWcOI=s z#3qcSFFY+0vFXCF@$_wP!g$*k)`qm^%4Aia=V2;C;FehWbj7?>8m4kI1tNnMrgDfQ zDL6Dt<|D0mmu))Ne}k;JzcTXdF^^y9zxG=)|orj2X=Zuz{h?%mP@Hi zmi>{>=oA*|aWC}jahp-aNudMqTFWB^c`XI9XyEs5(vX$&taef7$jtW4`@83jD2JoAhUpYCmI29NYql3ldd@_&r z?Gw;9u`-pIrD#=ZQVCWj5+pR=SZ~CG>XYO#o$|N zM&3C7jz9Jrc;qu@fAN&^&XNy$%)Ii&@FOQJe{f>*&T;qreL|ln|4{m~w%Pam=D#0L zP57YSqOEsMU3kEGkKLecfA5^g@1B2e+P|-SxaUPj->`nF<|*Zp9O@_KI84Mmppm;ADx@h%Jn5}B*~CzH(kmi_G0?Qs*!pTM3)QUNl# z_6KCr)KESkS3m~=iN+4UX`Ee2<~)WYvyvkqPr~R8QpT1b{UnAhjBZ23SDJ0i6uI^ml)T$&=pIcYoyZdDm zKX+5;>X-dgw2bJv49SOR#(C6POwI!j(Nu(zg)SW>KB<2;KQ2T<(-zed8aQg%x zis$?18M;X-sYy(9X*iGwZS|ATscMqHWO>V~2TU@5ob6E|279IG)w?aq@C+CcBw1qIQ41_4eUyvJ$rKQ< zE?>r+t^zRrXQ?3Hl0uw@rz?a6)M|VSmh4DqYEv?lXzmEkh-*qR&L0$a)shvaDH|y! zOw=8S+_^r+`9xw$YTa7k1A#>48h@!Ir)5nhXAQJi9Tsf_EE>v97Vw*-SH(3>@#b)>rAgn&7#byvz zQd-4nu^IG4!u4!)!|KpUbU6&$T@DIgV%LuVl6rxEX4O?xNjY8FwE;n*6hE}>7&mLm zf8z3(X-37NZF@f;kN$8Y5v#{mN$x zw?n4BX5uE!khOIK0_R_btW7#ekrQXg+B8Fg4!=-9*Fwil>>;ueXmO!{s5cNn9}5LU zQc8-VxKKc(AQF*2L?Nj*X2zbF%t8Mf&lrWw@F74zeT+h85LQx7#Zkx%dLrQpz9%?+ z3mCYIO?9&7>-S#TW|DcdFvMkc08-fHOM=rC0q$kl3nm^`IlmWr23XXSw6In+f zerNiY!flKYlTT9mnjp^}2|gbJ*ZR~tRSD_WgL0d9EK$rQaLsoEg6Cu4nwL&e>|6rZ zyk+&XdffUXb{Q2to4*`)qG8IAB(?4*(> zOb5>0ido%&i1};9Ea~<;D`shi1RZ{Yf&Rv%oHcjs;7oCX0oMr#oPP-hoNSWfCQdNm z^g@EI1$~h)Bch*q&EJy#c&}ZiaT_f3P-zb!X05(03#ed{GPW$^(?$XeKbfFf4Toa% z(7`!stC3k?`Dhz=y=lTGP9_lb27>2fGJ!}+NhuU36NnT!6b!D zJjYU{kO0HqYN%-oyKKh3cKh#4t0vxRaP|ZO=igR?Q$R_<6K^#*l|up$f2+YzBoUpm zDiI^sJSCZ-`=;TqCV%3s21iFAe*SGWIOLO*KJiwALpLP&e3)K|^)qf4vwXQ}H~z__ z&SiQvdjN6saeC!dkuL)5GQFBg$qpE|jm6AbM!=wl6ZsBUrz-myU|5F~;a{1gTVlP! zxH2ABHRBi_{t?{>L zCB>)IG0W#pqoZ?v(&!L!zoXHi9}jJxEweFNFe$XWZ}b+#yA-mE-U&zYmkNS353w!APX;`qzJkPS$O4;0F3)$3Fm}X zt6X@cUO-9lbNB0b<&Xeu_QkKW%-yA-g2y}FIw%kb3~=)> zfS4tG_2qO0`24P(dH4ivs$Mspx!N#Cp(Q$jvFw%GkSBSCde0G}!)MK0=1DOI6x zv-@#mfj>TII%&n?hmhe@fDB&bU!nh;4AM$!__Qt$3lg&UX;9A5vn(RJF-x2V<>(0H z(!Vq)hkTNfC{BZN=!OIz{YS#YqGL z{g7zHKLT%#(w>ZJ+zMpjIWL;?wD<@-vjdPi|Bk@p6_L*|6d!?S>VyOreoYxIBNLy3 z$1cti*OZBR1F`e5rc5NIq}EPcQzlXniAW#JowKm`m24A0Tk;zD4+$Xp+L#kmZRZfrfueFB=*Cie7SCuV!1l4j%E0Ihl%Y z=@oVd;^*Tny+Sc1MNxc9uTVoID)A#KrZzK`l$KOtjv6y|29!9WBIpbx(#MF3KuAe> z6h~A9`XSMHKK_1)Lz%hBP@HU#B(-3j8eXAjoMXtUzRNPr7!>TZPXdB^sek(-Al>C# zudK>xc#shGZ6QOsv$jWo3mLN?kWSwhGQ3*yp_p+YW2%M(9)5VH&bc4LPWur@qs
    VyQB4^}PO6c5Gb5dYBa_5qjhjIAFKH6N{-O*~26LKmxMQw<3` z{DaKuEH#qcMqA@;ZLxDu54-TF=V%C!4Cs)0fasSPHAA#)o=-_dR z>^BZxr%p(4;UCCdr=Q6Zo*Iqu1(EC;dhvnWTqhu8{vF88$tI~$3yX~!8z>~$@b}yn zC=F@xJhoaD@42x)K-B!(b7P`ON}71jjj4qM8vg2ms4!29#-du3H*4%}DDmon?*)X- zztsaToTRvkR}Z{mNWewVR}TW;te?n?1F?$vmN%daE}t*9K=f>p;6Y0HF1;^kWx}ET_$aTf=EQ3?X&IF zcWguPNOd&M?Vk-8d9R6O5b&OI9|2_Zf*;Cqa-vEK=*q4Q2ok01ky8C!r@SfgwrEm~ zw~(9q=7*BeP=hTH&3LT0rUj|3sovG=ayWWR%9_^A(>6mrMjXY32a5c$~qj3P>E z7rA5aGpdIK;#odh!E zp}b0}-2UlR677&6L^>VV)i1GD-xZ~IndXr@9oVfK5I*G7f!(B&)CzK^1G{O41RYl4 zGN;C5C83b5pLn=qMtr#vHqLg)wr$B3E_dORfNWwHE_XpolFCtMMNJ`RZN2LD#;Ah9Kd_^jLq3JGicNR#V$T9)>^A|z)jx@O`i9{%V=A9n*B(<+?QIf~xW^Av#W~;fD5@+7Ie+H0JA2aXV zWtEguaps-7nnmnAv7bk?I z_XQH^UqVQ_h?2r6P6$a?4+%v4qK@f$;EB*Djx{}U@OIO$6jx%3dIMqfv8Y2NrKCKH zi#kLKA`yvn_z&lUP-QH8c-h;3Fd^hlcTDd9 zHq-7o=_!+}ql7Cpy)_W4m5pRZA6HmdST(MY1eM64_bo&9X(Ck^QMI_D6(&L?q|XJB zDpQGBidLnP!~QB0iQpWiv9K&y6f7!ClJ7_d@&nhJ9|Ed^dif7m7 zayOH@cLaimd^4%Le3GKa-AwAP8xnl@3A)uPiJ?SScV6luUN*2B3&cgYt{(ve(#Hf{ zS5YNpQ=FjdswEPoNavw(Z<|dcYbn959^%eJbLj|MKL7c@B=B; zYEzSYAcdXaA`Ya8dIJIUF_0pXQc@DdffSK~NJJuC!)AM}I*GJbTU)k}#rC*s*s^s8 zGKqZ+TQ)Hzg_665Et`f&RN}8)=qpC3OsRa~Aq&Qc*Dj8ZKob31yEx>N6hZOY#i1J# zeE88Cs>fudp_SWlW9W&aHMVX*@cfI`*rbybJ8`terWq1+t>`gls>PHx5-KD=7(--a z#xU-FER2jgdjior%ePpxQ$R`SYX&`iBmnX2U2LONr?w`;T)jWrT@%;42s#5X^s(MW zAf%)yitAkj`bkeCxu-O&IB8^ylFT%6o%5GQPRRX|MovE@8u7CY=$mCNi`n54;%o!6 z1CToZvJH4enpWUDrNY|<=mvh=QYPq>H%-#MX>;ps$`Sur~ zXp)*U?)DdjrpwE9@zLo z`dBpfoc378gjBNwkUsxhL|&2o#YHrALV^q5MXXImTgattZG0A2M7i7KOY9=DK0w6$ za}k+nlA1KJi^$YM0uAZfQ_cekk#PN|y_*Oa8nCD>0tE@3Wq`!a{tY6nDW1@3l+C61&N%@;gbByg7FfJ5pa zf<|EmIsM3Pp9cMJ+~j8<)6&@-h*1(3Bd1i7(zMw9IU_;Uj04qzXuM=JDXVFUrZoOS zzr)Tr*L1E1Fjei1fj}j2fwId4#;NDaUoY6cb=PON1kbyp&(?j1{(aBB<$Et*|IGny zv31p(HVnCU{D;@=di_sNymQ?v<$Z^ByW-&FN&i`U^_uN}Z9nYtr+c=~9Z=dg_{5!?ezLgX#5y>1Z}Z8>VwbEUUE;L?bl2ge)Pph zR4D_7wmiPEwC1!|HUN#HDKvf4$eZ!0B$!I0u*-ib@*G8Y>!$iz8)4p^^~! zd&pOyS6eBmn<^q=kjfwyn5vlNvU|s_HA}m{*ysF}^KRR4*&QQ3+IRSikK8?e zOYiTt{Qj0>W6LkC=vDpd0bli-z9RnUv5U_C^_Xcx;$N=Zx#3r#lL{XET6yE>7yh#2 zgD=8G&uu=Ya^1X}27P+`&JjmGy{qr;TPsV(4eqgP+bbuG*G$`W2CA>19S|fG zpGhE&qyWtqsDcDe3xY)=C*rpz^`gVda9ByDNYGzP@_S4deR#Hs&|p(haStF&t%z1h zEEpK8{F?2SWqjH>00x=zJPjQ<6{t#fBs9I6Inhi?T=`QK25Oa93(cPle&x!s@u@wqUZd27BQ7az4mQz`pCTaUc<8X0z!sTewtM{ zFlzbbpGC4NmIH7QAI;N)ZA>L7UEJ1zwXehM*io*nfq3urnhgI|Bm)WANlSHm{B0$@~Cn=LZ4+